Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3
-
9223372036854775807
Description
trap is used in many tests to set actions to perform on cleanup.
IMHO, trap should be registered in this order:
cleanup_test_XX() { undo_something } test_XX() { trap cleanup_test_XX EXIT do_something ... }
Currently many tests do not respect this template.
Among those, some:
- register the trap after do_something();
- explicitly call cleanup_test_XX() at the end of the test;
- call trap 0 at the start of cleanup_test_XX() (this one may be controversial, I believe the test harness should provide, and probably already provides, trap isolation between tests).
Attachments
Issue Links
Activity
Reporter | Original: Quentin Bouget [ bougetq ] | New: CEA [ cealustre ] |
Fix Version/s | New: Lustre 2.10.7 [ 14401 ] |
Fix Version/s | New: Lustre 2.12.0 [ 13495 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Labels | Original: LTS patch | New: patch |
Attachment | New: tests_stack_trap.bash [ 28905 ] |
Labels | Original: patch | New: LTS patch |
Link | Original: This issue is related to JFC-10 [ JFC-10 ] |
Link | New: This issue is related to JFC-10 [ JFC-10 ] |