From 9e4159ba97862c78a9cfa3e3816f18c708ccba5e Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 26 Oct 2012 15:40:26 +0000 Subject: Simplify checkout-non-aliased-repos test The output of the list-tree depended on the value of TMPDIR. Instead we replace this with a test that the required directory exists. merge-with-stratum-renamed also fails with a TMPDIR different to /tmp, but I have no idea why. Signed off by Daniel Silverstone in person --- tests.branching/checkout-non-aliased-repos.script | 14 ++-------- tests.branching/checkout-non-aliased-repos.stdout | 32 ----------------------- 2 files changed, 2 insertions(+), 44 deletions(-) (limited to 'tests.branching') diff --git a/tests.branching/checkout-non-aliased-repos.script b/tests.branching/checkout-non-aliased-repos.script index 75b68bea..b98add2c 100755 --- a/tests.branching/checkout-non-aliased-repos.script +++ b/tests.branching/checkout-non-aliased-repos.script @@ -34,12 +34,7 @@ cd "$DATADIR/workspace" "$SRCDIR/scripts/test-morph" init "$SRCDIR/scripts/test-morph" checkout "$REPO_WITH_SUFFIX" master -echo "File tree of repo with suffix:" -"$SRCDIR/scripts/list-tree" . | grep -v '/\.git/' | - sed 's,/cache/gits/file_[^/]*_,/cache/gits/file_,' | - grep -v 'cache/gits/file_[^/]*/' | - sed "s,${DATADIR:1},DATADIR,g" | - sed "s,${TEMP_DIR:1},TEMP_DIR,g" +test -d "$DATADIR/workspace/master/$DATADIR/morphs" echo "Current branches of repo with suffix:" "$SRCDIR/scripts/run-git-in" master/"${DATADIR:1}"/morphs branch @@ -52,12 +47,7 @@ cd "$DATADIR/workspace" "$SRCDIR/scripts/test-morph" init "$SRCDIR/scripts/test-morph" checkout "$REPO_WITHOUT_SUFFIX" master -echo "File tree of repo without suffix:" -"$SRCDIR/scripts/list-tree" . | grep -v '/\.git/' | - sed 's,/cache/gits/file_[^/]*_,/cache/gits/file_,' | - grep -v 'cache/gits/file_[^/]*/' | - sed "s,${DATADIR:1},DATADIR,g" | - sed "s,${TEMP_DIR:1},TEMP_DIR,g" +test -d "$DATADIR/workspace/master/$DATADIR/morphs" echo "Current branches of repo without suffix:" "$SRCDIR/scripts/run-git-in" master/"${DATADIR:1}"/morphs branch diff --git a/tests.branching/checkout-non-aliased-repos.stdout b/tests.branching/checkout-non-aliased-repos.stdout index 6f651f5b..2d056c2f 100644 --- a/tests.branching/checkout-non-aliased-repos.stdout +++ b/tests.branching/checkout-non-aliased-repos.stdout @@ -1,36 +1,4 @@ -File tree of repo with suffix: -d . -d ./.morph -d ./.morph/cache -d ./.morph/cache/gits -d ./.morph/cache/gits/file_git -d ./master -d ./master/.morph-system-branch -d ./master/tmp -d ./master/TEMP_DIR -d ./master/DATADIR -d ./master/DATADIR/morphs -d ./master/DATADIR/morphs/.git -f ./master/.morph-system-branch/config -f ./master/DATADIR/morphs/hello-stratum.morph -f ./master/DATADIR/morphs/hello-system.morph Current branches of repo with suffix: * master -File tree of repo without suffix: -d . -d ./.morph -d ./.morph/cache -d ./.morph/cache/gits -d ./.morph/cache/gits/file_morphs -d ./master -d ./master/.morph-system-branch -d ./master/tmp -d ./master/TEMP_DIR -d ./master/DATADIR -d ./master/DATADIR/morphs -d ./master/DATADIR/morphs/.git -f ./master/.morph-system-branch/config -f ./master/DATADIR/morphs/hello-stratum.morph -f ./master/DATADIR/morphs/hello-system.morph Current branches of repo without suffix: * master -- cgit v1.2.1