-
-
Save victorlin/440f35d39de25f44cedd405285eda2e3 to your computer and use it in GitHub Desktop.
testing Cram's temp directories
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
Create a new file in the test's temp directory. | |
$ cat newfile.txt | |
cat: .*: No such file or directory (re) | |
[1] | |
$ echo "hello" > newfile.txt | |
Create a new file in the test runner's temp directory (shared). | |
$ cat "$TMP"/newfile.txt | |
cat: .*: No such file or directory (re) | |
[1] | |
$ echo "hello" > "$TMP"/newfile.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
Create a new file in the test's temp directory. | |
$ cat newfile.txt | |
cat: .*: No such file or directory (re) | |
[1] | |
$ echo "hello" > newfile.txt | |
Create a new file in the test runner's temp directory (shared). | |
$ cat "$TMP"/newfile.txt | |
cat: .*: No such file or directory (re) | |
[1] | |
$ echo "hello" > "$TMP"/newfile.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
% cram --shell=/bin/bash *.t | |
.! | |
--- 2.t | |
+++ 2.t.err | |
@@ -8,6 +8,5 @@ | |
Create a new file in the test runner's temp directory (shared). | |
$ cat "$TMP"/newfile.txt | |
- cat: .*: No such file or directory (re) | |
- [1] | |
+ hello | |
$ echo "hello" > "$TMP"/newfile.txt | |
# Ran 2 tests, 0 skipped, 1 failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment