From: Thierry Parmentelat Date: Fri, 29 Apr 2022 16:13:47 +0000 (+0200) Subject: try to avoid being fooled when detecting a no-sfa build X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=ade1c0ef24875e9b6696dadd271d778752f643b8 try to avoid being fooled when detecting a no-sfa build --- diff --git a/system/TestPlc.py b/system/TestPlc.py index c50b952..633fde2 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -245,7 +245,7 @@ class TestPlc: # warning, we're now building 'sface' so let's be a bit more picky # full builds are expected to return with 0 here utils.header("Checking if build provides SFA package...") - retcod = utils.system("curl --silent {}/ | grep -q sfa-".format(rpms_url)) == 0 + retcod = utils.system("curl --silent {}/ | grep -q sfa-4".format(rpms_url)) == 0 encoded = 'yes' if retcod else 'no' with open(has_sfa_cache_filename,'w') as cache: cache.write(encoded)