diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-30 12:32:05 +0300 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-30 12:32:05 +0300 |
| commit | aa6c8d47ea120670c0858d50bc33072ca2ba718d (patch) | |
| tree | 2a3958545c6a5e22f5746d9cf765913a8146995c | |
| parent | a7202a1fb911f72c309380b42c0ff995c05ba94c (diff) | |
fixup: wait for test.txt in detached SciTECO instance for up to 10 seconds
Hopefully fixes the OBS build errors.
| -rw-r--r-- | tests/testsuite.at | 6 |
1 files changed, 2 insertions, 4 deletions
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]) |
