diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-04-21 10:27:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-21 10:27:41 +0200 |
| commit | bdd6b06076aea4bf5bbbf7ad6a8dbf89092ae315 (patch) | |
| tree | 7070196a4cca1de6b7ad9569d207ce77cd2865ae /test/utils/test.py | |
| parent | 4165a03aa7638c6266a0967a7763c0f239f19e38 (diff) | |
| parent | 598e65a66bc817ebf6009ae5c33a584bedced99e (diff) | |
| download | miasm-bdd6b06076aea4bf5bbbf7ad6a8dbf89092ae315.tar.gz miasm-bdd6b06076aea4bf5bbbf7ad6a8dbf89092ae315.zip | |
Merge pull request #518 from commial/feature/dse
Feature/dse
Diffstat (limited to 'test/utils/test.py')
| -rw-r--r-- | test/utils/test.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/utils/test.py b/test/utils/test.py index e4f8888c..9e569a4b 100644 --- a/test/utils/test.py +++ b/test/utils/test.py @@ -2,22 +2,25 @@ class Test(object): "Stand for a test to run" def __init__(self, command_line, base_dir="", depends=None, - products=None, tags=None): + products=None, tags=None, executable=None): """Create a Test instance. @command_line: list of string standing for arguments to launch @base_dir: base directory for launch @depends: list of Test instance indicating dependencies @products: elements produced to remove after tests @tags: list of str indicating current test categories + @executable: if set, use this binary instead of Python """ self.command_line = command_line self.base_dir = base_dir self.depends = depends if depends else [] self.products = products if products else [] self.tags = tags if tags else [] + self.executable = executable def __repr__(self): displayed = ["command_line", "base_dir", "depends", "products", "tags"] + displayed.append("python" if not self.executable else self.executable) return "<Test " + \ " ".join("%s=%s" % (n, getattr(self,n)) for n in displayed ) + ">" @@ -29,4 +32,6 @@ class Test(object): self.base_dir == test.base_dir, self.depends == test.depends, self.products == test.products, - self.tags == test.tags]) + self.tags == test.tags, + self.executable == test.executable, + ]) |