Browse Source

Fixed log printing

Stephen Starkey 1 year ago
parent
commit
6a2db7d2cc
1 changed files with 10 additions and 5 deletions
  1. 10
    5
      bin/test-all

+ 10
- 5
bin/test-all View File

@@ -4,10 +4,15 @@
4 4
 
5 5
 lein do clean, compile
6 6
 
7
-echo SPEC > spec.log
8
-echo KIBIT > kibit.log
9
-echo BIKESHED > bikeshed.log
10
-echo ANCIENT > ancient.log
7
+SPECLOG=spec.log
8
+KIBITLOG=kibit.log
9
+BIKESHEDLOG=bikeshed.log
10
+ANCIENTLOG=ancient.log
11
+
12
+echo SPEC > $SPECLOG
13
+echo KIBIT > $KIBITLOG
14
+echo BIKESHED > $BIKESHEDLOG
15
+echo ANCIENT > $ANCIENTLOG
11 16
 
12 17
 echo "Kicking off unit tests..."
13 18
 lein spec > spec.log 2>&1 &
@@ -36,7 +41,7 @@ then
36 41
   echo "tests successful"
37 42
   exit 0
38 43
 else
39
-  cat cljtest.log kibit.log bikeshed.log ancient.log
44
+  cat $SPECLOG $KIBITLOG $BIKESHEDLOG $ANCIENTLOG
40 45
   echo "TESTS FAILED"
41 46
   exit 1
42 47
 fi