[Reproducible-builds] [misc] 02/07: test-reproducibility: pick a more useful path in run_different_path

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Aug 31 19:09:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository misc.

commit 0b723b4159a8faf9ee874bc1f3c569d300a0a801
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Aug 31 18:02:23 2014 +0000

    test-reproducibility: pick a more useful path in run_different_path
---
 test-reproducibility/test-reproducibility | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test-reproducibility/test-reproducibility b/test-reproducibility/test-reproducibility
index 6809758..807f51d 100755
--- a/test-reproducibility/test-reproducibility
+++ b/test-reproducibility/test-reproducibility
@@ -29,7 +29,10 @@ run_different_time() {
 }
 
 run_different_path() {
-	faketime @+$NOW proot -b "$PWD":/something sh -c "cd /something && $COMMAND"
+	local parent
+
+	parent="$(dirname "$PWD")"
+	faketime @+$NOW proot -b "$PWD:$parent/different" sh -c "cd $parent/different && $COMMAND"
 }
 
 run_different_user() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-builds mailing list