mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user