Browse Source

Merge pull request #10716 from ahmetalpbalkan/win-cli/fix-emptyfs-path

Change emptyfs path in integration-cli tests
Tianon Gravi 10 years ago
parent
commit
65623e22aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      project/make/.ensure-emptyfs

+ 2 - 1
project/make/.ensure-emptyfs

@@ -5,7 +5,8 @@ if ! docker inspect emptyfs &> /dev/null; then
 	# let's build a "docker save" tarball for "emptyfs"
 	# let's build a "docker save" tarball for "emptyfs"
 	# see https://github.com/docker/docker/pull/5262
 	# see https://github.com/docker/docker/pull/5262
 	# and also https://github.com/docker/docker/issues/4242
 	# and also https://github.com/docker/docker/issues/4242
-	dir="$(mktemp -d)"
+	dir="$DEST/emptyfs"
+	mkdir -p "$dir"
 	(
 	(
 		cd "$dir"
 		cd "$dir"
 		echo '{"emptyfs":{"latest":"511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"}}' > repositories
 		echo '{"emptyfs":{"latest":"511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158"}}' > repositories