diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-04-02 16:30:12 +0200 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-04-02 16:30:12 +0200 |
| commit | 06800decdd01d7abe5add7b8932cd8a21eca9640 (patch) | |
| tree | e3fe280256a80d5d40d1bab1bb9a72714a4f6621 /test/test_all.py | |
| parent | 55c00f729101259e2706a171a5bff4106bb7efdd (diff) | |
| parent | 485e96aa63548c7dde4eb97886e3ea59d309f262 (diff) | |
| download | miasm-06800decdd01d7abe5add7b8932cd8a21eca9640.tar.gz miasm-06800decdd01d7abe5add7b8932cd8a21eca9640.zip | |
Merge pull request #138 from commial/test-do-not-suppr
Test "do not suppr" option
Diffstat (limited to 'test/test_all.py')
| -rw-r--r-- | test/test_all.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_all.py b/test/test_all.py index ecf9a63b..c31d02af 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -138,8 +138,9 @@ testset += RegressionTest(["depgraph.py"], base_dir="analysis", "graph_test_09_00.dot", "graph_test_09_01.dot", "graph_test_10_00.dot", + "graph_test_11_00.dot", ] + ["graph_%02d.dot" % test_nb - for test_nb in xrange(1, 11)]) + for test_nb in xrange(1, 12)]) # Examples class Example(Test): @@ -371,6 +372,8 @@ if __name__ == "__main__": parser.add_argument("-t", "--ommit-tags", help="Ommit tests based on tags \ (tag1,tag2). Available tags are %s. \ By default, no tag is ommited." % ", ".join(TAGS.keys()), default="") + parser.add_argument("-n", "--do-not-clean", + help="Do not clean tests products", action="store_true") args = parser.parse_args() ## Parse multiproc argument @@ -471,5 +474,8 @@ By default, no tag is ommited." % ", ".join(TAGS.keys()), default="") # Run tests testset.run() + # Finalize + testset.end(clean=not args.do_not_clean) + # Exit with an error if at least a test failed exit(testset.tests_passed()) |