run-integration-tests-in-lxd-fix: commit missing fixes from previous change
@@ -31,10 +31,8 @@ function run_tests {
# NOTE: rockstar (13 Sep 2016) - --recursive is not supported in lxd <2.1, so
# until we have pervasive support for that, we'll do this tar hack.
local ldir="$DIR/.."
- cd "$ldir" && tar cf - ./* .git | lxc exec "$container_name" -- tar xf - -C /opt/pylxd
- cd "$DIR"
- lxc exec "$container_name" -- /bin/sh -c "cd /opt/pylxd && integration/run-integration-tests"
-
+ env -C "$ldir" tar cf - ./* .git | lxc exec "$container_name" -- tar xf - -C /opt/pylxd
+ lxc exec "$container_name" -- /bin/sh -c "env -C /opt/pylxd integration/run-integration-tests"
lxc delete --force "$container_name"
}
@@ -45,5 +43,5 @@ else
images=("${!RELEASE_IMAGES[@]}")
fi
for image in "${images[@]}"; do
- echo run_tests "$image"
+ run_tests "$image"
done
