Page MenuHomeClusterLabs Projects

Clean up properly if CTS test is interrupted
Open, LowPublic

Assigned To
None
Authored By
kgaillot
Tue, Jan 7, 11:19 AM
Tags
  • Restricted Project
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Some regression tests use the Corosync object to create a temporary Corosync configuration, saving the original (if any) to a temporary name, and restoring the original when the test ends. However if a test crashes or is interrupted by the user, the original will not be restored.

Similarly on an interrupt or crash, corosync may be left running, or other test-specific cleanup may be left undone.

Use exception handling and/or atexit() to ensure the proper cleanup is always done.

Event Timeline

kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".
kgaillot renamed this task from Restore original corosync.conf if regression test is interrupted to Clean up properly if CTS test is interrupted.Tue, Jan 7, 12:22 PM
kgaillot updated the task description. (Show Details)