Fix t/130-mode: "ls -l" output is not always as expected
[tweaked by apenwarr to remove dependency on non-portable /usr/bin/stat]
This commit is contained in:
parent
67c1d4f7d8
commit
1f32d06c4e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
umask 0022
|
umask 0022
|
||||||
redo mode1
|
redo mode1
|
||||||
MODE="$(ls -l mode1 | cut -d' ' -f1)"
|
MODE=$(python -c 'import os; print oct(os.stat("mode1").st_mode & 07777)')
|
||||||
[ "$MODE" = "-rw-r--r--" ] || exit 78
|
[ "$MODE" = "0644" ] || exit 78
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue