Skip to content

Commit

Permalink
tests/user/runtest: Delete PATH_EXPDIR when it is a file
Browse files Browse the repository at this point in the history
PATH_EXPDIR is a directory for all tests except t16.
  • Loading branch information
snogge committed Aug 29, 2024
1 parent 5492519 commit 8ff4c15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/user/runtest
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if [ $rc != 0 ]; then
fi

[ -d "$PATH_EXPDIR" ] && rm -rf $PATH_EXPDIR
[ ! -f "$PATH_EXPDIR" ] || rm -f "$PATH_EXPDIR"

diff $USER_SRCDIR/$TEST.exp $TEST.out >$TEST.diff
rc=$?
Expand Down

0 comments on commit 8ff4c15

Please sign in to comment.