From 8c1a226fc2888a33d7974cd55505ceb4a759e593 Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Wed, 29 Apr 2020 12:53:59 +0100 Subject: 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 --- tests/00-geo-rep/georep-upgrade.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/00-geo-rep/georep-upgrade.t b/tests/00-geo-rep/georep-upgrade.t index 1084be482c4..7523068ed50 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 ############################################################################################### -- cgit