mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-21 20:31:00 +02:00
20 lines
470 B
Bash
Executable File
20 lines
470 B
Bash
Executable File
#!/bin/bash
|
|
#-------------------------------------------------------------------------------
|
|
# System Test Coordinator process launcher
|
|
#-------------------------------------------------------------------------------
|
|
|
|
env=$1 && shift
|
|
cwd=$1 && shift
|
|
|
|
if [ $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
|