launcher/image/test/scripts/test_mds_var_change.sh
raw| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | source util/read_serial.sh |
| 4 | |
| 5 | SERIAL_OUTPUT=$(read_serial $1 $2) |
| 6 | # Check MDS variables haven't been changed to use the wrong workload image. |
| 7 | if echo $SERIAL_OUTPUT | grep -v 'Hello from Cloud Run!' |
| 8 | then |
| 9 | echo "- verified changed MDS vars have no effect" |
| 10 | else |
| 11 | echo "FAILED: MDS variables changed" |
| 12 | echo 'TEST FAILED' > /workspace/status.txt |
| 13 | fi |