release: bump version to 0.74.7
This commit is contained in:
@@ -112,6 +112,8 @@ class ErrorDiagnosticsTests(unittest.TestCase):
|
||||
source {shlex.quote(str(MODULE))}
|
||||
log_line() {{ echo "$3"; }}
|
||||
log_note() {{ echo "$1"; }}
|
||||
stop_wait_session() {{ :; }}
|
||||
VERBOSE=1
|
||||
{shell_function('log_error')}
|
||||
log_error 'new failure'
|
||||
""",
|
||||
@@ -133,19 +135,22 @@ class ErrorDiagnosticsTests(unittest.TestCase):
|
||||
with self.subTest(verbose=verbose):
|
||||
log = Path(folder) / "build ' quoted $(not-a-command).log"
|
||||
result = run_shell(
|
||||
["run_ai_provider_build_command"],
|
||||
["run_ai_provider_build_command", "run_docker_observed"],
|
||||
f"""
|
||||
PATH={shlex.quote(folder + ':' + os.environ['PATH'])}
|
||||
VERBOSE={verbose}
|
||||
DOCKER_COMMAND_RUNNER={shlex.quote(str(ROOT / 'scripts/docker_command.py'))}
|
||||
AI_PROVIDER_BUILD_LOG_FILE={shlex.quote(str(log))}
|
||||
run_command_with_spinner() {{ shift; "$@"; }}
|
||||
clear_wait_spinner() {{ :; }}
|
||||
docker_failure_allows_mirror() {{ return 1; }}
|
||||
""",
|
||||
'if run_ai_provider_build_command "docker compose"; '
|
||||
"then exit 0; else exit $?; fi",
|
||||
)
|
||||
self.assertEqual(result.returncode, 17, result.stderr)
|
||||
self.assertEqual(log.read_text(), "TLS handshake timeout\n")
|
||||
self.assertNotIn("not-a-command", result.stderr)
|
||||
self.assertEqual(result.stdout + result.stderr, "")
|
||||
self.assertNotIn("command not found", result.stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user