diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-20 16:07:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-20 16:07:32 -0500 |
commit | aa9668a2fc40b728ec0e3afed85ac9e12c3c50f1 (patch) | |
tree | 959590dbd9aacd7ffb932f1cf75c8730d272a727 /mesonbuild/interpreter.py | |
parent | df4af2d122111651468617b4feb34ccc91132bad (diff) | |
parent | 1ebc5c1ea0c4f32ffd9acd82a8fc7f122326b01c (diff) | |
download | meson-aa9668a2fc40b728ec0e3afed85ac9e12c3c50f1.zip meson-aa9668a2fc40b728ec0e3afed85ac9e12c3c50f1.tar.gz meson-aa9668a2fc40b728ec0e3afed85ac9e12c3c50f1.tar.bz2 |
Merge pull request #730 from mesonbuild/newtest
New testing tool
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index cda7cc7..1c562b6 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -610,7 +610,7 @@ class RunTargetHolder(InterpreterObject): self.held_object = build.RunTarget(name, command, args, dependencies, subdir) class Test(InterpreterObject): - def __init__(self, name, suite, exe, is_parallel, cmd_args, env, should_fail, valgrind_args, timeout, workdir): + def __init__(self, name, suite, exe, is_parallel, cmd_args, env, should_fail, timeout, workdir): InterpreterObject.__init__(self) self.name = name self.suite = suite @@ -619,7 +619,6 @@ class Test(InterpreterObject): self.cmd_args = cmd_args self.env = env self.should_fail = should_fail - self.valgrind_args = valgrind_args self.timeout = timeout self.workdir = workdir @@ -2124,12 +2123,8 @@ requirements use the version keyword argument instead.''') if ' ' in k: raise InterpreterException('Env var key must not have spaces in it.') env[k] = val - valgrind_args = kwargs.get('valgrind_args', []) - if not isinstance(valgrind_args, list): - valgrind_args = [valgrind_args] - for a in valgrind_args: - if not isinstance(a, str): - raise InterpreterException('Valgrind_arg not a string.') + if not isinstance(envlist, list): + envlist = [envlist] should_fail = kwargs.get('should_fail', False) if not isinstance(should_fail, bool): raise InterpreterException('Keyword argument should_fail must be a boolean.') @@ -2152,7 +2147,7 @@ requirements use the version keyword argument instead.''') s = '.' + s newsuite.append(self.subproject.replace(' ', '_').replace('.', '_') + s) suite = newsuite - t = Test(args[0], suite, args[1].held_object, par, cmd_args, env, should_fail, valgrind_args, timeout, workdir) + t = Test(args[0], suite, args[1].held_object, par, cmd_args, env, should_fail, timeout, workdir) if is_base_test: self.build.tests.append(t) mlog.debug('Adding test "', mlog.bold(args[0]), '".', sep='') |