mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
fix: a test that aborts fails (exit status of the piped block), vminstall reads the ISO with bsdtar (no loop partitions in CI containers)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
80f4d68536
commit
6c0c80fb9a
3 files changed
+17
-1
No files matched your search
@@ -96,7 +96,11 @@ for block in "$dir"/*.sh; do
|
||||
done
|
||||
vm_stop
|
||||
} 2>&1 | tee "$log" | sed -u "s/^/[$suite] /" >> "$TEST_LOG"
|
||||
rc=${PIPESTATUS[0]} # an abort inside the braces must not pass as 0 failed checks
|
||||
fails="$(grep -c '^FAIL' "$log")"
|
||||
if [[ $rc -ne 0 && $fails -eq 0 ]]; then
|
||||
echo "FAIL $suite aborted (exit $rc): $(grep -v '^$' "$log" | tail -n 1)" | tee -a "$log"; fails=1
|
||||
fi
|
||||
echo "== $suite: $(grep -c '^PASS' "$log") passed, $fails failed, $(grep -c '^SKIP' "$log") skipped (log: $log)" | tee -a "$log"
|
||||
grep '^FAIL' "$log"
|
||||
exit "$fails"
|
||||
Reference in new issue
Block a user