diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-12-17 20:50:15 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-12-17 20:50:15 +0000 |
commit | 21b98d7dbb548cad9cd8783c10665718bdcb3444 (patch) | |
tree | c51b598e687225d952eddb10cceb4993f6530358 /cmdtest | |
parent | a657020d4e208ab37c18277f75cb0578f34e3ce0 (diff) | |
download | cmdtest-21b98d7dbb548cad9cd8783c10665718bdcb3444.tar.gz |
remove --command / -c option and $COMMAND and foo.args
Diffstat (limited to 'cmdtest')
-rwxr-xr-x | cmdtest | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -44,17 +44,12 @@ class CommandTester(cliapp.Application): def add_settings(self): self.settings.string(['command', 'c'], - 'test COMMAND (executable name/path; $PATH is ' - 'not searched, so give absolute path when ' - 'necessary)', - metavar='COMMAND', - default=None) + 'ignored for backwards compatibility') self.settings.string_list(['test', 't'], 'run only TEST (can be given many times)', metavar='TEST') def process_args(self, dirnames): - self.settings.require('command') self.setup_ttystatus() td = self.load_tests(dirnames) @@ -122,7 +117,6 @@ class CommandTester(cliapp.Application): env = dict(os.environ) env['SRCDIR'] = os.getcwd() env['DATADIR'] = self.datadir - env['COMMAND'] = os.path.abspath(self.settings['command']) return env def run_test(self, test): @@ -133,9 +127,7 @@ class CommandTester(cliapp.Application): if test.script: argv = [test.script] else: - argv = [self.settings['command']] - if test.args: - argv.extend(self.expand(self.lines(test.args))) + raise cliapp.AppException('Must have a .script file for test') stdout_name = test.path_prefix + '.stdout-actual' stderr_name = test.path_prefix + '.stderr-actual' |