Skip to content

Commit

Permalink
added plugin exists condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dolladollabill authored and dragon512 committed Oct 18, 2017
1 parent fa702d2 commit 79e3bf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/gold_tests/autest-site/conditions.test.ext
Expand Up @@ -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)

0 comments on commit 79e3bf8

Please sign in to comment.