Files
Pierre-Marie de Rodat b191c89708 Testsuite: stop using e3.testsuite.process.check_call (obsolete)
Use instead `e3.testsuite.driver.classic.ClassicTestDriver.shell`, which
is the intended way to spawn subprocesses from these drivers.
2025-07-16 07:31:27 +00:00

27 lines
768 B
Python

from drivers import ALSTestDriver
class ShellTestDriver(ALSTestDriver):
"""
Run the test.sh test program.
"""
def run(self) -> None:
# This takes care of failing the test in case the return code is
# non-zero
p = self.shell(
["bash", "test.sh", self.env.repo_base],
env={
"ALS": self.env.als,
"ALS_HOME": self.env.als_home,
},
# The following makes the child process inherit the parent process's
# environment, in addition to the above environment.
ignore_environ=False,
timeout=15, # seconds
)
assert self.env.main_options
if self.env.main_options.verbose:
print(p.out)