diff options
author | Kotresh HR <khiremat@redhat.com> | 2014-12-30 10:47:49 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-12-31 01:20:37 -0800 |
commit | 0250eb0698e567134ddd897b134bbe4f8da003a2 (patch) | |
tree | 8f0a05311fed1b3f89aad3c680d6c83590dc79c3 /tests/bugs | |
parent | c399cec72b9985f120a1495e93e1a380911547d9 (diff) |
test: Make gfid-access.py more generic.
Few of the hard coded values, uid, gid and file permissions
are made as arguments to make the script more generic.
Also fixes the permission issue which was hard coded
as integer instead of octal.
Change-Id: Icec700770de2b7cae00e02f783d072860e6d5e2b
BUG: 1176934
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/9366
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/bug-1111490.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/bug-1111490.t b/tests/bugs/bug-1111490.t index 6760bbe952b..d3138054746 100644 --- a/tests/bugs/bug-1111490.t +++ b/tests/bugs/bug-1111490.t @@ -17,7 +17,7 @@ TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0 --aux-gfid-mount # create file with specific gfid uuid=`uuidgen` EXPECT "File creation OK" $PYTHON $(dirname $0)/../utils/gfid-access.py \ - $M0 ROOT file0 $uuid file + $M0 ROOT file0 $uuid file 10 10 0644 # check gfid EXPECT "$uuid" getfattr --only-values -n glusterfs.gfid.string $M0/file0 @@ -29,6 +29,6 @@ TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0 --aux-gfid-mount # touch the file again (gfid-access.py handles errno) EXPECT "File creation OK" $PYTHON $(dirname $0)/../utils/gfid-access.py \ - $M0 ROOT file0 $uuid file + $M0 ROOT file0 $uuid file 10 10 0644 cleanup; |