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.

Cherry-pick of dae115251828e035fcad229f9c9d78856fb867b7
Change-Id: Ie15b89734264789bef9a8efcfdbbf2cdb89c936e

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