diff options
author | srijan-sivakumar <ssivakum@redhat.com> | 2020-09-24 22:10:12 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bala12352@gmail.com> | 2020-09-25 11:57:39 +0000 |
commit | 05526c98a2466b1aae61473882749937a5a44894 (patch) | |
tree | 6affb606871c9aa9984a730f16f34b96b556373d /tests/functional/disperse | |
parent | c729da244414c6e3e6bc0d374c644fc2058c91d7 (diff) |
[TestFix] Removing the 'cd' in file operations
Reason : The cd will change the working directory to root
and renames and softlink creations for subsequent files will
fail as seen in the glusto logs.
Change-Id: I174ac11007dc301ba6ec8ccddaeb919a181b1c30
Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
Diffstat (limited to 'tests/functional/disperse')
-rw-r--r-- | tests/functional/disperse/test_ec_uss_snapshot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/disperse/test_ec_uss_snapshot.py b/tests/functional/disperse/test_ec_uss_snapshot.py index d986ffd9d..fec1754f6 100644 --- a/tests/functional/disperse/test_ec_uss_snapshot.py +++ b/tests/functional/disperse/test_ec_uss_snapshot.py @@ -165,7 +165,7 @@ class TestEcUssSnapshot(GlusterBaseClass): # Rename all files inside dir1 at mountpoint on dir1 cmd = ('cd %s/dir1/dir1/; ' 'for FILENAME in *;' - 'do mv $FILENAME Unix_$FILENAME; cd ~;' + 'do mv $FILENAME Unix_$FILENAME;' 'done;' % self.mounts[0].mountpoint) ret, _, _ = g.run(self.mounts[0].client_system, cmd) @@ -180,7 +180,7 @@ class TestEcUssSnapshot(GlusterBaseClass): for mount_obj in self.mounts: cmd = ('cd %s/dir1/dir%s/; ' 'for FILENAME in *;' - 'do echo > $FILENAME; cd ~;' + 'do echo > $FILENAME;' 'done;' % (mount_obj.mountpoint, str(start))) ret, _, _ = g.run(mount_obj.client_system, cmd) @@ -193,7 +193,7 @@ class TestEcUssSnapshot(GlusterBaseClass): for mount_obj in self.mounts: cmd = ('cd %s/dir1/dir%s; ' 'for FILENAME in *; ' - 'do ln -s $FILENAME softlink_$FILENAME; cd ~;' + 'do ln -s $FILENAME softlink_$FILENAME;' 'done;' % (mount_obj.mountpoint, str(start))) ret, _, _ = g.run(mount_obj.client_system, cmd) @@ -202,7 +202,7 @@ class TestEcUssSnapshot(GlusterBaseClass): cmd = ('cd %s/dir1/dir%s; ' 'for FILENAME in *; ' - 'do ln $FILENAME hardlink_$FILENAME; cd ~;' + 'do ln $FILENAME hardlink_$FILENAME;' 'done;' % (mount_obj.mountpoint, str(start + 1))) ret, _, _ = g.run(mount_obj.client_system, cmd) |