Allow running script locally without schutzbot
This commit is contained in:
parent
12c900ac35
commit
f87d8325d9
2 changed files with 8 additions and 4 deletions
|
|
@ -115,6 +115,10 @@ SSH_USER="admin"
|
||||||
IMAGE_KEY="osbuild-composer-installer-test-${TEST_UUID}"
|
IMAGE_KEY="osbuild-composer-installer-test-${TEST_UUID}"
|
||||||
GUEST_ADDRESS=192.168.100.50
|
GUEST_ADDRESS=192.168.100.50
|
||||||
|
|
||||||
|
if [[ ${WORKSPACE:-empty} == empty ]]; then
|
||||||
|
WORKSPACE=$(mktemp -d)
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up temporary files.
|
# Set up temporary files.
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
BLUEPRINT_FILE=${TEMPDIR}/blueprint.toml
|
BLUEPRINT_FILE=${TEMPDIR}/blueprint.toml
|
||||||
|
|
|
||||||
|
|
@ -76,16 +76,16 @@ TEST_UUID=$(uuidgen)
|
||||||
IMAGE_KEY=osbuild-composer-qemu-test-${TEST_UUID}
|
IMAGE_KEY=osbuild-composer-qemu-test-${TEST_UUID}
|
||||||
INSTANCE_ADDRESS=192.168.100.50
|
INSTANCE_ADDRESS=192.168.100.50
|
||||||
|
|
||||||
|
if [[ ${WORKSPACE:-empty} == empty ]]; then
|
||||||
|
WORKSPACE=$(mktemp -d)
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up temporary files.
|
# Set up temporary files.
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
BLUEPRINT_FILE=${TEMPDIR}/blueprint.toml
|
BLUEPRINT_FILE=${TEMPDIR}/blueprint.toml
|
||||||
COMPOSE_START=${TEMPDIR}/compose-start-${IMAGE_KEY}.json
|
COMPOSE_START=${TEMPDIR}/compose-start-${IMAGE_KEY}.json
|
||||||
COMPOSE_INFO=${TEMPDIR}/compose-info-${IMAGE_KEY}.json
|
COMPOSE_INFO=${TEMPDIR}/compose-info-${IMAGE_KEY}.json
|
||||||
|
|
||||||
if [[ ${WORKSPACE:-empty} == empty ]]; then
|
|
||||||
WORKSPACE=$(mktemp -d)
|
|
||||||
fi
|
|
||||||
|
|
||||||
SSH_DATA_DIR=$(/usr/libexec/osbuild-composer-test/gen-ssh.sh)
|
SSH_DATA_DIR=$(/usr/libexec/osbuild-composer-test/gen-ssh.sh)
|
||||||
SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue