Permalink
Browse files

Fix a spec test which depended on the developer's umask setting.

  • Loading branch information...
Andy Chu
Andy Chu committed May 1, 2018
1 parent 8809c92 commit 5ce621d2c1f445b78eb40058735fd3ed065746be
Showing with 8 additions and 5 deletions.
  1. +6 −3 spec/builtins.test.sh
  2. +2 −2 spec/redirect.test.sh
View
@@ -175,12 +175,15 @@ stat -c '%a' $TMP/umask-one $TMP/umask-two
# stderr-json: ""
### set umask symbolically
umask 0002 # begin in a known state for the test
rm $TMP/umask-one $TMP/umask-two
echo one > $TMP/umask-one
umask g-w,o-w
echo two > $TMP/umask-two
stat -c '%a' $TMP/umask-one $TMP/umask-two
# status: 0
# stdout-json: "664\n644\n"
# stderr-json: ""
## STDOUT:
664
644
## END
## stderr-json: ""
View
@@ -253,10 +253,10 @@ stdout_stderr.py &> $TMP/f.txt
# order is indeterminate
grep STDOUT $TMP/f.txt >/dev/null && echo 'ok'
grep STDERR $TMP/f.txt >/dev/null && echo 'ok'
# STDOUT:
## STDOUT:
ok
ok
# END
## END
# N-I dash stdout: STDOUT
# N-I dash stderr: STDERR
# N-I dash status: 1

0 comments on commit 5ce621d

Please sign in to comment.