Browse code

Add $TOP_DIR to the path when calling tools' scripts

The missing reference to $TOP_DIR prevent us to run stack.sh from a different
directory.

Change-Id: Ie15b89734264789bef9a8efcfdbbf2cdb89c936e

Mauro S. M. Rodrigues authored on 2014/06/17 10:10:54
Showing 1 changed files
... ...
@@ -548,14 +548,14 @@ if [[ -n "$LOGFILE" ]]; then
548 548
     exec 3>&1
549 549
     if [[ "$VERBOSE" == "True" ]]; then
550 550
         # Set fd 1 and 2 to write the log file
551
-        exec 1> >( ./tools/outfilter.py -v -o "${LOGFILE}" ) 2>&1
551
+        exec 1> >( $TOP_DIR/tools/outfilter.py -v -o "${LOGFILE}" ) 2>&1
552 552
         # Set fd 6 to summary log file
553
-        exec 6> >( ./tools/outfilter.py -o "${SUMFILE}" )
553
+        exec 6> >( $TOP_DIR/tools/outfilter.py -o "${SUMFILE}" )
554 554
     else
555 555
         # Set fd 1 and 2 to primary logfile
556
-        exec 1> >( ./tools/outfilter.py -o "${LOGFILE}" ) 2>&1
556
+        exec 1> >( $TOP_DIR/tools/outfilter.py -o "${LOGFILE}" ) 2>&1
557 557
         # Set fd 6 to summary logfile and stdout
558
-        exec 6> >( ./tools/outfilter.py -v -o "${SUMFILE}" >&3 )
558
+        exec 6> >( $TOP_DIR/tools/outfilter.py -v -o "${SUMFILE}" >&3 )
559 559
     fi
560 560
 
561 561
     echo_summary "stack.sh log $LOGFILE"
... ...
@@ -572,7 +572,7 @@ else
572 572
         exec 1>/dev/null 2>&1
573 573
     fi
574 574
     # Always send summary fd to original stdout
575
-    exec 6> >( ./tools/outfilter.py -v >&3 )
575
+    exec 6> >( $TOP_DIR/tools/outfilter.py -v >&3 )
576 576
 fi
577 577
 
578 578
 # Set up logging of screen windows