mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
we only need to run connectTest once in updateTest.bash
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user