-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ test ] Remove unnecessary messages from stderr
This prevents "rm: cannot remove ...: No such file or directory" errors by only running rm when the file is actually present. Another potential solution would be to keep using rm every time, but reroute 2>/dev/null so that the failure message doesn't get displayed to the user.
- Loading branch information
1 parent
c04404a
commit ee7e3e3
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
. ../../testutils.sh | ||
|
||
rm test.buf | ||
[ -e test.buf ] && rm test.buf | ||
|
||
run --cg node Buffer.idr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
. ../../testutils.sh | ||
|
||
rm -rf testdir | ||
[ -e testdir ] && rm -rf testdir | ||
|
||
run --cg node dir.idr | filter_test_dir | ||
cat testdir/test.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
. ../../testutils.sh | ||
|
||
rm testout.txt | ||
[ -e testout.txt ] && rm testout.txt | ||
|
||
run --cg node File.idr |