improve system tests

- log import errors for test modules
- log output only on test failure
- improve docker system test container
- use go 1.19 in docker system tests
- download go dependencies in docker container
- system tests: color failues output
- imrpove test result output
- do not install golangci-lint in system tests
This commit is contained in:
André Roth
2024-07-23 13:05:25 +02:00
parent 9f1860dff7
commit 4a0bdcbb64
8 changed files with 75 additions and 61 deletions

View File

@@ -278,6 +278,7 @@ class BaseTest(object):
params['url'] = self.webServerUrl
command = string.Template(command).substitute(params)
print(f"running command: {command}\n")
command = shlex.split(command)
if command[0] == "aptly":
@@ -294,7 +295,7 @@ class BaseTest(object):
proc = self._start_process(command, stdout=subprocess.PIPE)
raw_output, _ = proc.communicate()
raw_output = raw_output.decode("utf-8")
raw_output = raw_output.decode("utf-8", errors='replace')
returncodes = [proc.returncode]
is_aptly_command = False