summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2020-04-29 12:53:59 +0100
committerSunny Kumar <sunkumar@redhat.com>2020-04-29 13:01:58 +0100
commit8c1a226fc2888a33d7974cd55505ceb4a759e593 (patch)
tree0cf4d7dc4fea5e18c5b7baacffcbed2779e571a1
parent3ccb21587514e5a3fa139a721b8ef17a1abe20ed (diff)
tests: fix georep-upgrade.t failure
This patch fixes georep-upgrade.t test failure. Problem: `TEST upgrade_script=$(find / -type f -name glusterfs-georep-upgrade.py)` Multiple files with the same name can exist for temp fix picking only the 1st result. The proper fix should be finding a proper place for this upgrade script and use that. Change-Id: I8b388e30a30bc4a9a2f392bed42ceee7e8bc250a Updates: #1209 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
-rw-r--r--tests/00-geo-rep/georep-upgrade.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/00-geo-rep/georep-upgrade.t b/tests/00-geo-rep/georep-upgrade.t
index 1084be4..7523068 100644
--- a/tests/00-geo-rep/georep-upgrade.t
+++ b/tests/00-geo-rep/georep-upgrade.t
@@ -47,7 +47,10 @@ EXPECT '1' echo $(ls /bricks/brick1/.glusterfs/changelogs/htime/HTIME.$epoch2 |
###############################################################################################
#Upgrade
###############################################################################################
-TEST upgrade_script=$(find / -type f -name glusterfs-georep-upgrade.py)
+### This needed to be fixed as this very vague finding a file with name in '/'
+### multiple file with same name can exist
+### for temp fix picking only 1st result
+TEST upgrade_script=$(find / -type f -name glusterfs-georep-upgrade.py -print | head -n 1)
TEST python3 $upgrade_script $brick
###############################################################################################