Skip to content

Commit

Permalink
run_tests: don't delete files if $datadir is not set
Browse files Browse the repository at this point in the history
otherwise "./run_tests units" will try to delete all files in /tmp/...
  • Loading branch information
jdtournier committed Sep 30, 2020
1 parent 92f9f9c commit c60cd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ for testitem in $testlist; do
EOD

echo -n 'running "'${testitem}'"... '
rm -rf $datadir/tmp* $datadir/*-tmp-*
[[ -n "$datadir" ]] && rm -rf $datadir/tmp* $datadir/*-tmp-*
((ntests=0))
((success=0))
while IFS='' read -r cmd || [[ -n "$cmd" ]]; do
Expand Down

0 comments on commit c60cd26

Please sign in to comment.