mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
test: do not fail TEST-02-UNITTESTS if they are all skipped
The return code is initialized to fail if /testok is not found, but that also covers the case where all tests are skipped.
This commit is contained in:
parent
7d3f9bf493
commit
1d5574516f
@ -29,6 +29,8 @@ check_result_nspawn() {
|
|||||||
if [[ -s "$workspace/skipped" ]]; then
|
if [[ -s "$workspace/skipped" ]]; then
|
||||||
echo "=== Skipped test log =="
|
echo "=== Skipped test log =="
|
||||||
cat "$workspace/skipped"
|
cat "$workspace/skipped"
|
||||||
|
# We might have only skipped tests - that should not fail the job
|
||||||
|
ret=0
|
||||||
fi
|
fi
|
||||||
if [[ -s "$workspace/testok" ]]; then
|
if [[ -s "$workspace/testok" ]]; then
|
||||||
echo "=== Passed tests ==="
|
echo "=== Passed tests ==="
|
||||||
@ -57,6 +59,8 @@ check_result_qemu() {
|
|||||||
if [[ -s "$initdir/skipped" ]]; then
|
if [[ -s "$initdir/skipped" ]]; then
|
||||||
echo "=== Skipped test log =="
|
echo "=== Skipped test log =="
|
||||||
cat "$initdir/skipped"
|
cat "$initdir/skipped"
|
||||||
|
# We might have only skipped tests - that should not fail the job
|
||||||
|
ret=0
|
||||||
fi
|
fi
|
||||||
if [[ -s "$initdir/testok" ]]; then
|
if [[ -s "$initdir/testok" ]]; then
|
||||||
echo "=== Passed tests ==="
|
echo "=== Passed tests ==="
|
||||||
|
Loading…
Reference in New Issue
Block a user