diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-07-12 15:27:26 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-07-12 16:01:05 +0200 |
commit | 74711e7a097b038293a91880ee721bef6cf1a658 (patch) | |
tree | 8cd0a421ba62a270f93b063fa946d750b421d35d /test/units/testsuite-02.sh | |
parent | test: drop redundant 'function' keyword (diff) | |
download | systemd-74711e7a097b038293a91880ee721bef6cf1a658.tar.xz systemd-74711e7a097b038293a91880ee721bef6cf1a658.zip |
test: fail if we find units/tests in failed state
Instead of relying on the post-test /failed file check.
Diffstat (limited to '')
-rwxr-xr-x | test/units/testsuite-02.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-02.sh b/test/units/testsuite-02.sh index 97700e4439..88e9d72ad1 100755 --- a/test/units/testsuite-02.sh +++ b/test/units/testsuite-02.sh @@ -23,7 +23,7 @@ MAX_QUEUE_SIZE=${NPROC:-2} mapfile -t TEST_LIST < <(find /usr/lib/systemd/tests/unit-tests/ -maxdepth 1 -type f -name "${TESTS_GLOB}") # Reset state -rm -fv /failed-tests /skipped-tests /skipped +rm -fv /failed /skipped /testok if ! systemd-detect-virt -qc; then # Make sure ping works for unprivileged users (for test-bpf-firewall) @@ -112,4 +112,4 @@ set -x # Test logs are sometimes lost, as the system shuts down immediately after journalctl --sync -exit 0 +test ! -s /failed |