diff --git a/tests/gold_tests/autest-site/conditions.test.ext b/tests/gold_tests/autest-site/conditions.test.ext index ff123782d35..21b21c26799 100644 --- a/tests/gold_tests/autest-site/conditions.test.ext +++ b/tests/gold_tests/autest-site/conditions.test.ext @@ -47,6 +47,14 @@ def HasATSFeature(self, feature): "ATS feature not enabled: {feature}".format(feature=feature) ) +#test if a plugin exists in the libexec folder +def PluginExists(self, pluginname): + + path = self.Variables.PLUGINDIR + "/" + return self.Condition(lambda: os.path.isfile(path + pluginname) == True, "The plugin: " + pluginname + " does not exist in " + path ) + ExtendCondition(HasATSFeature) ExtendCondition(HasCurlFeature) +ExtendCondition(PluginExists) +