diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-22 18:09:50 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-22 18:09:50 -0500 |
| commit | 0a57d75d3947fddd6c6ab62924c52a456f4776b0 (patch) | |
| tree | 0c6d863574d1eb6c5ffa4c3a761bc5bf514ba864 /scripts | |
| parent | b6525a50fabf3aedf41eee70c164519b00d27704 (diff) | |
| download | archangel-0a57d75d3947fddd6c6ab62924c52a456f4776b0.tar.gz archangel-0a57d75d3947fddd6c6ab62924c52a456f4776b0.zip | |
test: make SSH_PORT overridable in test-install.sh
The port was hardcoded, so a test run collided with any other VM already forwarding 2222. It now defaults to 2222, so existing invocations are unchanged. SSH_PORT=2223 scripts/test-install.sh picks a free port to run alongside another VM.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test-install.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test-install.sh b/scripts/test-install.sh index cf933a5..8cfe2ec 100755 --- a/scripts/test-install.sh +++ b/scripts/test-install.sh @@ -22,7 +22,9 @@ VM_DIR="$PROJECT_DIR/vm" VM_RAM="4096" VM_CPUS="4" VM_DISK_SIZE="20G" -export SSH_PORT="2222" +# Overridable so a test VM can use a free port when another VM already +# holds 2222 (e.g. SSH_PORT=2223 scripts/test-install.sh single-disk). +export SSH_PORT="${SSH_PORT:-2222}" export SSH_PASSWORD="archangel" SERIAL_LOG="$LOG_DIR/serial.log" |
