Skip to content

Commit

Permalink
docker: allow running from srcdir != builddir build
Browse files Browse the repository at this point in the history
The new script uses "git submodule", which is picky about being invoked
from the top of the git checkout.  Invoke the script from $(SRC_PATH)
to avoid git's wrath.

Fixes: b7f4042
Cc: Fam Zheng <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>

Message-Id: <[email protected]>
Reviewed-by: Daniel P. Berrange <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
  • Loading branch information
bonzini authored and Fam Zheng committed Oct 20, 2017
1 parent 08c3f6d commit bc739b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/docker/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ TESTS ?= %
IMAGES ?= %

CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
DOCKER_SRC_COPY := docker-src.$(CUR_TIME)
DOCKER_SRC_COPY := $(BUILD_DIR)/docker-src.$(CUR_TIME)

$(DOCKER_SRC_COPY):
@mkdir $@
$(call quiet-command, $(SRC_PATH)/scripts/archive-source.sh $@/qemu.tar, \
$(call quiet-command, cd $(SRC_PATH) && scripts/archive-source.sh $@/qemu.tar, \
"GEN", "$@/qemu.tar")
$(call quiet-command, cp $(SRC_PATH)/tests/docker/run $@/run, \
"COPY","RUNNER")
Expand Down

0 comments on commit bc739b8

Please sign in to comment.