diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2025-01-14 10:28:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2025-01-14 10:28:53 +0000 |
commit | 929a7f35226e61f7d108b6eda9e5fefdb844fbe3 (patch) | |
tree | f1c5b4f62cca05bd101d32f5f168cd3b446d2bc7 /test | |
parent | Adding upstream version 4.3+20241202. (diff) | |
download | mdadm-929a7f35226e61f7d108b6eda9e5fefdb844fbe3.tar.xz mdadm-929a7f35226e61f7d108b6eda9e5fefdb844fbe3.zip |
Adding upstream version 4.4.upstream/4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test')
-rwxr-xr-x | test | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -46,12 +46,19 @@ md125=/dev/md125 mdp0=/dev/md_d0 mdp1=/dev/md_d1 +SKIP=3 + die() { echo -e "\n\tERROR: $* \n" save_log fail exit 2 } +skip() { + echo -e "\n\tSKIPPING, REASON: $* \n" + exit $SKIP +} + ctrl_c() { exitonerror=1 ctrl_c_error=1 @@ -142,11 +149,18 @@ do_test() { succeed "succeeded\n" _fail=0 else - print_time_elapsed $start_sec - save_log fail - _fail=1 - if [ "$_broken" == "1" ]; then - echo " (KNOWN BROKEN TEST: $_broken_msg)" + exit_code=$? # Capture the exit code from the script + if [ $exit_code -eq $SKIP ]; then + warn "skipping" + save_log + _fail=0 + else + print_time_elapsed $start_sec + save_log fail + _fail=1 + if [ "$_broken" == "1" ]; then + echo " (KNOWN BROKEN TEST: $_broken_msg)" + fi fi fi restore_system_speed_limit |