diff options
author | Andreas Gruenbacher <agruen@schurl.lan> | 2012-01-23 19:55:37 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@schurl.lan> | 2012-01-23 20:04:27 +0100 |
commit | bf559171d647975c19564072e8b6167c9e44144c (patch) | |
tree | 2ceeeb66193a29855fad6b5c837047813d1f0cb7 /test | |
parent | 1edd83d133c9863108e059f4484086bebcf52ae7 (diff) | |
download | quilt-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.test | 10 |
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 |