summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@schurl.lan>2012-01-23 19:55:37 +0100
committerAndreas Gruenbacher <agruen@schurl.lan>2012-01-23 20:04:27 +0100
commitbf559171d647975c19564072e8b6167c9e44144c (patch)
tree2ceeeb66193a29855fad6b5c837047813d1f0cb7 /test
parent1edd83d133c9863108e059f4484086bebcf52ae7 (diff)
downloadquilt-bf559171d647975c19564072e8b6167c9e44144c.tar.gz
test suite: in the "ls -l" output, ignore additional characters after the file permissions
Access control lists will add a "+", and SELinux will add a "."; we don't care in the test suite.
Diffstat (limited to 'test')
-rw-r--r--test/perms.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/perms.test b/test/perms.test
index 7539f67..af595cb 100644
--- a/test/perms.test
+++ b/test/perms.test
@@ -3,7 +3,7 @@
$ echo foo > foo
$ chmod 704 foo
- $ ls -l foo | awk '{ print $1,$NF }'
+ $ ls -l foo | awk '{ print substr($1, 1, 10), $NF }'
> -rwx---r-- foo
$ quilt new test.diff
@@ -12,7 +12,7 @@
$ quilt add foo
> File foo added to patch %{P}test.diff
- $ ls -l foo | awk '{ print $1,$NF }'
+ $ ls -l foo | awk '{ print substr($1, 1, 10), $NF }'
> -rwx---r-- foo
$ echo foobar > foo
@@ -26,7 +26,7 @@
> File foo added to patch %{P}test2.diff
$ chmod 702 foo
- $ ls -l foo | awk '{ print $1,$NF }'
+ $ ls -l foo | awk '{ print substr($1, 1, 10), $NF }'
> -rwx----w- foo
$ echo foobaz > foo
@@ -41,14 +41,14 @@ the backup file.
> Removing patch %{P}test2.diff
> Now at patch %{P}test.diff
- $ ls -l foo | awk '{ print $1,$NF }'
+ $ ls -l foo | awk '{ print substr($1, 1, 10), $NF }'
> -rwx---r-- foo
$ quilt push -q
> Applying patch %{P}test2.diff
> Now at patch %{P}test2.diff
- $ ls -l foo | awk '{ print $1,$NF }'
+ $ ls -l foo | awk '{ print substr($1, 1, 10), $NF }'
> -rwx---r-- foo
$ quilt pop -q