launcher/image/test/scripts/test_startupscript_disabled.sh
raw| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | source util/read_serial.sh |
| 4 | |
| 5 | echo 'Running startup script test' |
| 6 | |
| 7 | echo 'Reading from serial port:' |
| 8 | SERIAL_OUTPUT=$(read_serial $1 $2) |
| 9 | echo $SERIAL_OUTPUT |
| 10 | |
| 11 | # Without the or logic, this step will fail and cleanup does not run. |
| 12 | # Instead, we put the test assertion output in /workspace/status.txt. |
| 13 | echo $SERIAL_OUTPUT | grep -v 'Executing startup script' || echo 'TEST FAILED' > /workspace/status.txt |