diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-23 10:55:49 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-23 15:12:35 +0200 |
commit | 7bf20e48bd7d641a39a14a7feb749b7e8b0fc0f6 (patch) | |
tree | 692aeb6cc46e1e433ecdea951402eb47a16516a1 /test/TEST-02-UNITTESTS | |
parent | various: print the image path when setting up of the loopback device fails (diff) | |
download | systemd-7bf20e48bd7d641a39a14a7feb749b7e8b0fc0f6.tar.xz systemd-7bf20e48bd7d641a39a14a7feb749b7e8b0fc0f6.zip |
test: move the logic to support /skipped into shared logic
The logic to query test state was rather complex. I don't quite grok the point
of ret=$((ret+1))… But afaics, the precise result was always ignored by the
caller anyway.
Diffstat (limited to 'test/TEST-02-UNITTESTS')
-rwxr-xr-x | test/TEST-02-UNITTESTS/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/TEST-02-UNITTESTS/test.sh b/test/TEST-02-UNITTESTS/test.sh index 2bfe41a42b..f7545b7620 100755 --- a/test/TEST-02-UNITTESTS/test.sh +++ b/test/TEST-02-UNITTESTS/test.sh @@ -39,7 +39,7 @@ check_result_nspawn() { save_journal "$workspace/var/log/journal" _umount_dir "${initdir:?}" - [[ -n "${TIMED_OUT:=}" ]] && ret=$((ret + 1)) + [[ -n "${TIMED_OUT:=}" ]] && ret=1 return $ret } @@ -67,7 +67,7 @@ check_result_qemu() { save_journal "$initdir/var/log/journal" _umount_dir "$initdir" - [[ -n "${TIMED_OUT:=}" ]] && ret=$((ret + 1)) + [[ -n "${TIMED_OUT:=}" ]] && ret=1 return $ret } |