From 13d05bc8458758ee39cb829098241e89616717ee Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Wed, 9 Sep 2015 22:15:21 -0700 Subject: ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60 Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd --- framework/src/onos/tools/test/bin/stc-launcher | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 framework/src/onos/tools/test/bin/stc-launcher (limited to 'framework/src/onos/tools/test/bin/stc-launcher') diff --git a/framework/src/onos/tools/test/bin/stc-launcher b/framework/src/onos/tools/test/bin/stc-launcher new file mode 100755 index 00000000..6e473cdf --- /dev/null +++ b/framework/src/onos/tools/test/bin/stc-launcher @@ -0,0 +1,25 @@ +#!/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 -- cgit 1.2.3-korg