From 79a12298e70f1ccfa3d05bfb5ed046f6ef123bc5 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 11 Nov 2015 12:23:54 +0800 Subject: [PATCH] Suffix _testsuite is optional for phpunit --- mdk/commands/phpunit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mdk/commands/phpunit.py b/mdk/commands/phpunit.py index a87f6c0..d1ab6dc 100644 --- a/mdk/commands/phpunit.py +++ b/mdk/commands/phpunit.py @@ -148,11 +148,16 @@ class PhpunitCommand(Command): PU.init(force=args.force, prefix=prefix) + # Automatically add the suffix _testsuite. + testsuite = args.testsuite + if testsuite and not testsuite.endswith('_testsuite'): + testsuite += '_testsuite' + kwargs = { 'coverage': args.coverage, 'filter': args.filter, 'testcase': args.testcase, - 'testsuite': args.testsuite, + 'testsuite': testsuite, 'unittest': args.unittest } -- 2.11.0