diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-20 17:46:04 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-28 11:51:29 +0100 |
commit | eb1290ef35af93eebb73e6f0769031382011e8ca (patch) | |
tree | d954ea40d8215788689483ba29d16fd8ec17af01 /test/TEST-24-UNIT-TESTS | |
parent | b74a3061972d5d4cecfb93c1185aebfba72acb52 (diff) | |
download | systemd-eb1290ef35af93eebb73e6f0769031382011e8ca.tar.gz |
test: wipe journal files after test
Otherwise they accumulate and create noise.
Diffstat (limited to 'test/TEST-24-UNIT-TESTS')
-rwxr-xr-x | test/TEST-24-UNIT-TESTS/test.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TEST-24-UNIT-TESTS/test.sh b/test/TEST-24-UNIT-TESTS/test.sh index 0475621623..5ce8d85433 100755 --- a/test/TEST-24-UNIT-TESTS/test.sh +++ b/test/TEST-24-UNIT-TESTS/test.sh @@ -23,6 +23,7 @@ check_result_nspawn() { fi fi cp -a $TESTDIR/$1/var/log/journal $TESTDIR + rm -r $TESTDIR/$1/var/log/journal/* [[ -n "$TIMED_OUT" ]] && _ret=$(($_ret+1)) umount_initdir return $_ret @@ -47,6 +48,7 @@ check_result_qemu() { fi fi cp -a $initdir/var/log/journal $TESTDIR + rm -r $initdir/var/log/journal/* umount_initdir [[ -n "$TIMED_OUT" ]] && _ret=$(($_ret+1)) return $_ret |