test-install: Avoid hardcoded paths in /tmp.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2019-01-14 17:59:21 -08:00 committed by Tim Abbott
parent c17ddceeae
commit b4e1403cf9
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ mount -t overlay overlay \
"$shared_dir"/mnt "$shared_dir"/mnt
lxc-copy --ephemeral --keepdata -n "$BASE_CONTAINER_NAME" -N "$CONTAINER_NAME" \ lxc-copy --ephemeral --keepdata -n "$BASE_CONTAINER_NAME" -N "$CONTAINER_NAME" \
-m bind="$shared_dir"/mnt:/tmp/src/,bind=/srv/zulip/test-install/pip-cache:/root/.cache/pip -m bind="$shared_dir"/mnt:/mnt/src/,bind=/srv/zulip/test-install/pip-cache:/root/.cache/pip
"$THIS_DIR"/lxc-wait -n "$CONTAINER_NAME" "$THIS_DIR"/lxc-wait -n "$CONTAINER_NAME"
@ -76,6 +76,6 @@ run() {
lxc-attach -n "$CONTAINER_NAME" -- "$@" lxc-attach -n "$CONTAINER_NAME" -- "$@"
} }
run eatmydata -- /tmp/src/zulip-server/scripts/setup/install --self-signed-cert "${INSTALLER_ARGS[@]}" run eatmydata -- /mnt/src/zulip-server/scripts/setup/install --self-signed-cert "${INSTALLER_ARGS[@]}"
# TODO settings.py, initialize-database, create realm # TODO settings.py, initialize-database, create realm