diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2014-11-04 10:11:22 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2014-11-04 10:11:22 +0100 |
| commit | b1225bc72bebdf0ac0b1ac83509e122574b2c7cc (patch) | |
| tree | 242c4af3d8da10a14e83e9756185bf2f5cd53f20 /test/utils/test.py | |
| parent | b4745bf9980db9aee566a16f3725a9bd2d887860 (diff) | |
| parent | 9d72be933fb34137fd90279c14b52f1e02470ac1 (diff) | |
| download | miasm-b1225bc72bebdf0ac0b1ac83509e122574b2c7cc.tar.gz miasm-b1225bc72bebdf0ac0b1ac83509e122574b2c7cc.zip | |
Merge pull request #2 from commial/feature-test-tags
[Feature] Tests tags
Diffstat (limited to 'test/utils/test.py')
| -rw-r--r-- | test/utils/test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/utils/test.py b/test/utils/test.py index 1caf1013..e4f8888c 100644 --- a/test/utils/test.py +++ b/test/utils/test.py @@ -2,20 +2,22 @@ class Test(object): "Stand for a test to run" def __init__(self, command_line, base_dir="", depends=None, - products=None): + products=None, tags=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 """ 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 [] def __repr__(self): - displayed = ["command_line", "base_dir", "depends", "products"] + displayed = ["command_line", "base_dir", "depends", "products", "tags"] return "<Test " + \ " ".join("%s=%s" % (n, getattr(self,n)) for n in displayed ) + ">" @@ -26,4 +28,5 @@ class Test(object): return all([self.command_line == test.command_line, self.base_dir == test.base_dir, self.depends == test.depends, - self.products == test.products]) + self.products == test.products, + self.tags == test.tags]) |