From 4020d41305e740bb4800edee4b00b24965f71451 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Wed, 23 Jul 2008 17:41:36 +0200 Subject: [PATCH] gitstats: Don't asume setupRepo.py is executable Instead run it explicitly through the python interpreter which is more portable anyway. --- src/t/t8100-stats.sh | 4 ++-- src/t/t8101-metrics.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/t/t8100-stats.sh b/src/t/t8100-stats.sh index 314ada4..f3a5614 100755 --- a/src/t/t8100-stats.sh +++ b/src/t/t8100-stats.sh @@ -18,7 +18,7 @@ export GIT_STATS_PRETTY_PRINT="oneline" ########### test_expect_success 'extract test repo path' ' - TEST_REPO_PATH=$(../scripts/setupRepo.py test path) || { + TEST_REPO_PATH=$(python ../scripts/setupRepo.py test path) || { trap - exit echo >&5 "FATAL: Cannot extract test repo path" exit 1 @@ -34,7 +34,7 @@ test_expect_success 'pre-clean' ' ' test_expect_success 'setup' ' - ../scripts/setupRepo.py test path "$TEST_REPO_PATH" && \ + python ../scripts/setupRepo.py test path "$TEST_REPO_PATH" && \ cd "$TEST_REPO_PATH" || { trap - exit echo >&5 "FATAL: Cannot cd into fresh repo" diff --git a/src/t/t8101-metrics.sh b/src/t/t8101-metrics.sh index 5360476..bd7f5c0 100755 --- a/src/t/t8101-metrics.sh +++ b/src/t/t8101-metrics.sh @@ -17,7 +17,7 @@ ORIG_PATH=$PWD ########### test_expect_success 'extract test repo path' ' - METRICS_REPO_PATH=$(../scripts/setupRepo.py metrics path) || { + METRICS_REPO_PATH=$(python ../scripts/setupRepo.py metrics path) || { trap - exit echo >&5 "FATAL: Cannot extract test repo path" exit 1 @@ -33,7 +33,7 @@ test_expect_success 'pre-clean' ' ' test_expect_success 'setup' ' - ../scripts/setupRepo.py metrics path "$METRICS_REPO_PATH" && \ + python ../scripts/setupRepo.py metrics path "$METRICS_REPO_PATH" && \ cd "$METRICS_REPO_PATH" || { trap - exit echo >&5 "FATAL: Cannot cd into fresh repo" -- 2.11.4.GIT