class BlackboxTestCase(TestCaseInTempDir):
"""Base test case for blackbox tests."""
- def _make_cmdline(self, line):
+ @staticmethod
+ def _make_cmdline(line):
"""Expand the called script into a fully resolved path in the bin
directory."""
if isinstance(line, list):
# where ret is the return code
# stdout is a string containing the commands stdout
# stderr is a string containing the commands stderr
- def run_command(self, line):
- line = self._make_cmdline(line)
+ @classmethod
+ def run_command(cls, line):
+ line = cls._make_cmdline(line)
use_shell = not isinstance(line, list)
p = subprocess.Popen(line,
stdout=subprocess.PIPE,