mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
test: do not remove state directory on failure
The test log is in the state directory, and we want to keep it around when a test fails. Follow-up for:256a835f1c
(cherry picked from commit49e8342965
) (cherry picked from commitdbb1b9c2c8
)
This commit is contained in:
parent
cde5615a44
commit
8ae4fd8441
@ -3209,7 +3209,8 @@ do_test() {
|
||||
fi
|
||||
test_cleanup
|
||||
if [ $ret -eq 0 ]; then
|
||||
rm "$TESTLOG"
|
||||
# $TESTLOG is in $STATEDIR, so clean it up only on success
|
||||
[[ -n "$STATEDIR" ]] && rm -vfr "$STATEDIR"
|
||||
echo "[OK]"
|
||||
else
|
||||
echo "[FAILED]"
|
||||
|
Loading…
Reference in New Issue
Block a user