Adding Pete's fixes to system test scripts
This commit is contained in:
1 parent
6a1b154061
commit
f5fa2ff23a
3 files changed
+34
-6
No files matched your search
@@ -7,10 +7,16 @@ else
|
||||
sparkdata_dir=/sparkdata
|
||||
fi
|
||||
|
||||
config=$sparkdata_dir/conf/spark.conf
|
||||
bak=$sparkdata_dir/conf/spark.conf.bak
|
||||
|
||||
rm -r $sparkdata_dir/data/databases/ 2>/dev/null
|
||||
|
||||
[ ! -d "$sparkdata_dir/conf" ] && mkdir $sparkdata_dir/conf/
|
||||
mv $sparkdata_dir/conf/spark.conf $sparkdata_dir/conf/spark.conf.bak 2>/dev/null
|
||||
|
||||
if [ -f "$conf" ];then
|
||||
mv $conf $bak 2>/dev/null
|
||||
fi
|
||||
|
||||
cat << EOF > $sparkdata_dir/conf/spark.conf
|
||||
ExchangeSim {
|
||||
@@ -38,4 +44,7 @@ sleep 120
|
||||
dotnet sparkcmd.dll test spreader_simple_sanity
|
||||
|
||||
pkill -P $$
|
||||
mv $sparkdata_dir/conf/spark.conf.bak $sparkdata_dir/conf/spark.conf
|
||||
|
||||
if [ -f "$bak" ];then
|
||||
mv $bak $conf
|
||||
fi
|
||||
@@ -7,10 +7,17 @@ else
|
||||
sparkdata_dir=/sparkdata
|
||||
fi
|
||||
|
||||
config=$sparkdata_dir/conf/spark.conf
|
||||
bak=$sparkdata_dir/conf/spark.conf.bak
|
||||
|
||||
|
||||
rm -r $sparkdata_dir/data/databases/ 2>/dev/null
|
||||
|
||||
[ ! -d "$sparkdata_dir/conf" ] && mkdir $sparkdata_dir/conf/
|
||||
mv $sparkdata_dir/conf/spark.conf $sparkdata_dir/conf/spark.conf.bak 2>/dev/null
|
||||
|
||||
if [ -f "$conf" ];then
|
||||
mv $conf $bak 2>/dev/null
|
||||
fi
|
||||
|
||||
cat << EOF > $sparkdata_dir/conf/spark.conf
|
||||
ExchangeSim {
|
||||
@@ -37,4 +44,7 @@ sleep 120
|
||||
dotnet sparkcmd.dll test test_clip_limits
|
||||
|
||||
pkill -P $$
|
||||
mv $sparkdata_dir/conf/spark.conf.bak $sparkdata_dir/conf/spark.conf
|
||||
|
||||
if [ -f "$bak" ];then
|
||||
mv $bak $conf
|
||||
fi
|
||||
@@ -7,10 +7,16 @@ else
|
||||
sparkdata_dir=/sparkdata
|
||||
fi
|
||||
|
||||
config=$sparkdata_dir/conf/spark.conf
|
||||
bak=$sparkdata_dir/conf/spark.conf.bak
|
||||
|
||||
rm -r $sparkdata_dir/data/databases/ 2>/dev/null
|
||||
|
||||
[ ! -d "$sparkdata_dir/conf" ] && mkdir $sparkdata_dir/conf/
|
||||
mv $sparkdata_dir/conf/spark.conf $sparkdata_dir/conf/spark.conf.bak 2>/dev/null
|
||||
|
||||
if [ -f "$conf" ];then
|
||||
mv $conf $bak 2>/dev/null
|
||||
fi
|
||||
|
||||
cat << EOF > $sparkdata_dir/conf/spark.conf
|
||||
ExchangeSim {
|
||||
@@ -37,4 +43,7 @@ sleep 120
|
||||
dotnet sparkcmd.dll test test_position_limits
|
||||
|
||||
pkill -P $$
|
||||
mv $sparkdata_dir/conf/spark.conf.bak $sparkdata_dir/conf/spark.conf
|
||||
|
||||
if [ -f "$bak" ];then
|
||||
mv $bak $conf
|
||||
fi
|
||||
Reference in new issue
Block a user