You've already forked ada_language_server
mirror of
https://github.com/AdaCore/ada_language_server.git
synced 2026-02-12 12:45:50 -08:00
Use instead `e3.testsuite.driver.classic.ClassicTestDriver.shell`, which is the intended way to spawn subprocesses from these drivers.
27 lines
768 B
Python
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)
|