label expected compile timing probe

This commit is contained in:
udo
2026-07-14 23:38:20 +00:00
parent 6b18587581
commit dafffb4ab6
3 changed files with 14 additions and 6 deletions
+3 -2
View File
@@ -33,11 +33,12 @@ rm -rf "$cache_dir"
started_at=$(date '+%Y-%m-%d %H:%M:%S')
set +e
scripts/uce-cli "/$test_name/probe.uce" >/dev/null 2>&1
scripts/uce-cli --get "/$test_name/probe.uce" __uce_expected_compile_failure=1 >/dev/null 2>&1
set -e
for _ in $(seq 1 20); do
if journalctl -u uce --since "$started_at" --no-pager | grep -Fq "$test_name/probe.uce"; then
journal_output=$(journalctl -u uce --since "$started_at" --no-pager)
if [[ "$journal_output" == *"UCE expected compile error"* && "$journal_output" == *"$test_name/probe.uce"* ]]; then
echo "log timeliness passed"
exit 0
fi