we only need to run connectTest once in updateTest.bash

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-03-12 15:46:04 -08:00
parent 4dd66e6a49
commit 934a442651
2 changed files with 14 additions and 8 deletions

View File

@@ -4,6 +4,12 @@
# OPTION TWO: ./test_all_scripts.sh 4 5 : this command runs py-script commands (in testCommands array) that include the py-script options beginning with 4 and 5 (inclusive) in case function ret_case_num.
#Variables
FILE="/tmp/gui-update.lock"
if test -f "$FILE"; then
echo "Finish updating your GUI"
exit 0
fi
HOMEPATH=$(realpath ~)
if [[ ${#1} -gt 0 ]]; then

View File

@@ -160,15 +160,15 @@ pgrep java &>/dev/null && killall -9 java
sleep 1
#-daemon
touch "$D_MODE"
start_gui
python3 ${scripts}/connectTest.py &> $CTLH
#touch "$D_MODE"
#start_gui
#python3 ${scripts}/connectTest.py &> $CTLH#
echo "== HEADLESS =============================================" >> $ST
head $CTLH >> $ST
echo "===============================================" >> $ST
rm -f "$D_MODE"
pgrep java &>/dev/null && killall -9 java
#echo "== HEADLESS =============================================" >> $ST
#head $CTLH >> $ST
#echo "===============================================" >> $ST
#rm -f "$D_MODE"
#pgrep java &>/dev/null && killall -9 java
start_gui
connect_fail=0
wait_8080 || connect_fail=1