File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ func TestAgentScript(t *testing.T) {
129
129
t .Log (output .String ())
130
130
131
131
require .Eventually (t , func () bool {
132
- return bytes .Contains (output .Bytes (), []byte ("ERROR: Downloaded agent binary is invalid " ))
132
+ return bytes .Contains (output .Bytes (), []byte ("ERROR: Downloaded agent binary returned unexpected version output " ))
133
133
}, testutil .WaitShort , testutil .IntervalSlow )
134
134
})
135
135
}
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ export CODER_AGENT_URL="${ACCESS_URL}"
34
34
35
35
output=$( ./${BINARY_NAME} --version | head -n1)
36
36
if ! echo " ${output} " | grep -q Coder; then
37
- echo >&2 " ERROR: Downloaded agent binary is invalid "
38
- echo >&2 " Script output: ' ${output} ' "
37
+ echo >&2 " ERROR: Downloaded agent binary returned unexpected version output "
38
+ echo >&2 " ${BINARY_NAME} --version output: \" ${output} \" "
39
39
exit 2
40
40
fi
41
41
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ export CODER_AGENT_URL="${ACCESS_URL}"
89
89
90
90
output=$( ./${BINARY_NAME} --version | head -n1)
91
91
if ! echo " ${output} " | grep -q Coder; then
92
- echo >&2 " ERROR: Downloaded agent binary is invalid "
93
- echo >&2 " Script output: ' ${output} ' "
92
+ echo >&2 " ERROR: Downloaded agent binary returned unexpected version output "
93
+ echo >&2 " ${BINARY_NAME} --version output: \" ${output} \" "
94
94
exit 2
95
95
fi
96
96
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ $output = $p.StandardOutput.ReadToEnd()
43
43
$p.WaitForExit ()
44
44
45
45
if ($output -notlike " *Coder*" ) {
46
- Write-Error " ERROR: Downloaded agent binary is invalid "
47
- Write-Error " Script output: ' $ output' "
48
- Exit 2
46
+ Write-Output " $ env: TEMP \sshd.exe --version output: `" $output " ` "
47
+ Write-Error " ERROR: Downloaded agent binary returned unexpected version output"
48
+ Throw " unexpected binary "
49
49
}
50
50
51
51
# Check if we're running inside a Windows container!
You can’t perform that action at this time.
0 commit comments