git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] test-lib: avoid full path to store test results
@ 2012-10-30  4:12 Felipe Contreras
  2012-10-30  4:28 ` Jeff King
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Felipe Contreras @ 2012-10-30  4:12 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Jeff King, Jonathan Nieder,
	Ævar Arnfjörð Bjarmason, Johannes Sixt,
	Felipe Contreras

No reason to use the full path in case this is used externally.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 t/test-lib.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/test-lib.sh b/t/test-lib.sh
index 514282c..5a3d665 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -389,7 +389,8 @@ test_done () {
 	then
 		test_results_dir="$TEST_OUTPUT_DIRECTORY/test-results"
 		mkdir -p "$test_results_dir"
-		test_results_path="$test_results_dir/${0%.sh}-$$.counts"
+		base=${0##*/}
+		test_results_path="$test_results_dir/${base%.sh}-$$.counts"
 
 		cat >>"$test_results_path" <<-EOF
 		total $test_count
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-11-02 15:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30  4:12 [PATCH] test-lib: avoid full path to store test results Felipe Contreras
2012-10-30  4:28 ` Jeff King
2012-10-30  4:39   ` Felipe Contreras
2012-10-30  4:46 ` Jonathan Nieder
2012-10-30 16:02   ` Felipe Contreras
2012-10-31  1:27     ` Jonathan Nieder
2012-10-31  1:59       ` Felipe Contreras
2012-10-31  2:13         ` Jonathan Nieder
2012-10-31  2:28           ` Felipe Contreras
2012-10-31 18:02             ` Johannes Sixt
2012-10-31 18:28               ` Felipe Contreras
2012-11-02 13:17               ` Jeff King
2012-11-02 15:17                 ` Felipe Contreras
2012-11-02 15:20                   ` Jeff King
2012-10-30  6:58 ` Elia Pinto
2012-10-30  7:01   ` Jonathan Nieder
2012-10-30 22:17     ` Elia Pinto
2012-10-31  9:05       ` Stefano Lattarini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).