Skip to contentSkip to conversation

test-lib: Clean up comments and Makefile.

PATCH New Emil Sit 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Emil Sit

author
#0 lore raw

PATCH 1/1 test-lib: Clean up comments and Makefile.

Bring documentation in test-lib and clean target
in Makefile in-line with abc5d372.

---
 t/Makefile    |    2 +-
 t/test-lib.sh |    8 --------
 2 files changed, 1 insertions(+), 9 deletions(-)
t/Makefile +1 -1
index 0962341..bf816fc 100644
@@ -24,7 +24,7 @@ pre-clean:
 	$(RM) -r test-results
 
 clean:
-	$(RM) -r 'trash directory' test-results
+	$(RM) -r 'trash directory'.* test-results
 
 aggregate-results-and-cleanup: $(T)
 	$(MAKE) aggregate-results
t/test-lib.sh +0 -8
index 2979e8e..b050196 100644
@@ -523,14 +523,6 @@ test_done () {
 	fi
 	case "$test_failure" in
 	0)
-		# We could:
-		# cd .. && rm -fr 'trash directory'
-		# but that means we forbid any tests that use their own
-		# subdirectory from calling test_done without coming back
-		# to where they started from.
-		# The Makefile provided will clean this test area so
-		# we will leave things as they are.
-
 		say_color pass "passed all $msg"
 
 		test -d "$remove_trash" &&
Signature · 4 lines
1.5.4.3

-- 
Emil Sit / http://www.emilsit.net/