From aa6c8d47ea120670c0858d50bc33072ca2ba718d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 30 Dec 2025 12:32:05 +0300 Subject: fixup: wait for test.txt in detached SciTECO instance for up to 10 seconds Hopefully fixes the OBS build errors. --- tests/testsuite.at | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index 09c4df2..9d877a7 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -463,10 +463,8 @@ AT_CLEANUP AT_BANNER([Program features]) AT_SETUP([Detaching from terminal]) -AT_SKIP_IF([$SCITECO --help | $GREP -qvz '\-\-detach']) -AT_CHECK([$SCITECO --detach -e '23= @EW/test.txt/' && sleep 1], 0, [], []) -# FIXME: What if the "daemon" takes longer than 1 second to write test.txt? -AT_FAIL_IF([! test -f test.txt]) +AT_SKIP_IF([$SCITECO --help | $GREP -qvz -e '--detach']) +AT_CHECK([[timeout 10 $SHELL -c "$SCITECO --detach -e '23= @EW/test.txt/' && while [ ! -f test.txt ]; do sleep 1; done"]], 0, [], []) AT_CLEANUP AT_BANNER([Regression Tests]) -- cgit v1.2.3