diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2022-02-15 21:04:37 -0500 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2022-02-17 18:52:48 -0500 |
commit | f8b05a0f833f8415dce2a2b68441e91e7ebb9fc0 (patch) | |
tree | 452e970b8d9b1d3ad57bf21e70279f2a1082f11a /test | |
parent | wsd: test: move DocBroker events to UnitWSD (diff) | |
download | online-f8b05a0f833f8415dce2a2b68441e91e7ebb9fc0.tar.gz online-f8b05a0f833f8415dce2a2b68441e91e7ebb9fc0.zip |
wsd: support unattended runs
With --unattended, do not wait for a debugger
upon seg-faulting. This avoids the unnecessary wait
that prolongs failed unit-tests in automated runs.
Now run_unit.sh and Cypress Makefile set this flag.
Note that the wait only happens when in debug
builds, or when envar COOL_DEBUG is set. This
prevents us from waiting when running a debug
build where we can't see the output, or indeed
the run is on a CI build machine.
This flag can also be used by devs when reproducing
failures where there is no interest in attaching
a debugger. The logs are shorter and more
readable, too. At least in trace level.
Change-Id: Ice15482c6724abc47f5955402295198eb7f671ee
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'test')
-rwxr-xr-x | test/run_unit.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/run_unit.sh.in b/test/run_unit.sh.in index b60de15d73..32a2ec9b98 100755 --- a/test/run_unit.sh.in +++ b/test/run_unit.sh.in @@ -93,6 +93,7 @@ if ${trace} \ --o:ssl.ca_file_path="${abs_top_builddir}/etc/ca-chain.cert.pem" \ --o:admin_console.username=admin --o:admin_console.password=admin \ --o:storage.ssl.enable=false \ + --unattended \ --unitlib="${abs_top_builddir}/test/.libs/$tst.so" 2> "$tst_log"; then echo "Test $tst passed." echo ":test-result: PASS $tst" >> $test_output |