onos/tools/test/bin/stc-launcher
Thomas Vachuska b51b8bca62 Added ability for commands to post properties to be used as params of other commands.
Starting to add monitor GUI.

Change-Id: I9fcf1568d0de27dfd1c19e875f8646fd731a1dfa
2015-08-25 22:27:49 +00:00

26 lines
556 B
Bash
Executable File

#!/bin/bash
#-------------------------------------------------------------------------------
# System Test Coordinator process launcher
#-------------------------------------------------------------------------------
#sleep 5 && exit 0;
env=$1 && shift
cwd=$1 && shift
if [ $env != "-" -a $env != "~" ]; then
[ ! -f $env ] && echo "$env file not found" && exit 1
source $env
fi
if [ $cwd != "-" ]; then
[ ! -d $cwd ] && echo "$cwd directory not found" && exit 1
cd $cwd
fi
"$@" 2>&1
status=$?
[ $env != "~" ] && exit $status
exit 0