Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
8ada7ce5
Commit
8ada7ce5
authored
May 02, 2016
by
Rohit Gupta
Browse files
update for Gitlab CI to detect failed machines
parent
e47ee57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
8ada7ce5
...
...
@@ -321,13 +321,19 @@ def cleanOldPrograms(oai, programList, CleanUpAluLteBox, ExmimoRfStop):
print
"Killing old programs..."
+
result
programArray
=
programList
.
split
()
programListJoin
=
'|'
.
join
(
programArray
)
cmd
=
" ( date ;echo
\"
Starting cleaning old programs..
\"
; dmesg|tail )>& $HOME/.oai_test_setup_cleanup.log.`hostname` 2>&1 ; sync"
result
=
oai
.
send_recv
(
cmd
)
cmd
=
cleanupOldProgramsScript
+
' '
+
'
\'
'
+
programListJoin
+
'
\'
'
#result = oai.send_recv(cmd)
#print result
result
=
oai
.
send_expect_false
(
cmd
,
'Match found'
,
False
)
print
"Looking for old programs..."
+
result
res
=
oai
.
send_recv
(
CleanUpAluLteBox
,
True
)
res
=
oai
.
send_recv
(
ExmimoRfStop
,
False
)
cmd
=
"( "
+
ExmimoRfStop
+
" ) >> $HOME/.oai_test_setup_cleanup.log.`hostname` ; sync "
res
=
oai
.
send_recv
(
cmd
,
False
)
#res = oai.send_recv(ExmimoRfStop, False)
cmd
=
" ( date ;echo
\"
Finished cleaning old programs..
\"
; dmesg | tail)>> $HOME/.oai_test_setup_cleanup.log.`hostname` 2>&1 ; sync"
res
=
oai
.
send_recv
(
cmd
)
# \brief Class thread to launch a generic command on remote machine
# \param threadID number of thread (for book keeping)
...
...
@@ -1514,6 +1520,22 @@ for testcase in testcaseList:
threadListGlobal
=
wait_testcaseclass_generic_threads
(
threadListGlobal
,
Timeout_execution
)
#cleanOldProgramsAllMachines(oai_list, CleanUpOldProgs, CleanUpAluLteBox, ExmimoRfStop)
handle_testcaseclass_softmodem
(
testcase
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
logdirOpenaircnRepo
,
MachineList
,
user
,
pw
,
CleanUpAluLteBox
,
ExmimoRfStop
,
nruns_lte_softmodem
,
Timeout_cmd
)
#The lines below are copied from below to trace the failure of some of the machines in test setup. These lines below need to be removed in long term
print
"Creating xml file for overall results..."
cmd
=
"cat $OPENAIR_DIR/cmake_targets/autotests/log/*/*.xml > $OPENAIR_DIR/cmake_targets/autotests/log/results_autotests.xml "
res
=
os
.
system
(
cmd
)
print
"Now copying files to NFS Share"
oai_localhost
=
openair
(
'localdomain'
,
'localhost'
)
oai_localhost
.
connect
(
user
,
pw
)
tlocaldir
=
locallogdir
+
'/'
+
testcasename
tremotedir
=
NFSTestsResultsDir
+
'/log'
cmd
=
' mkdir -p '
+
tremotedir
+
' ; rm -fr '
+
tremotedir
+
'/'
+
testcasename
res
=
oai_localhost
.
send_recv
(
cmd
)
print
"Copying files from GilabCI Runner Machine : "
+
host
+
" .tlocallogdir = "
+
tlocaldir
+
", tremotedir = "
+
tremotedir
SSHSessionWrapper
(
'localhost'
,
user
,
None
,
pw
,
tremotedir
,
tlocaldir
,
"put_all"
)
elif
(
testcaseclass
==
'compilation'
):
threadListGlobal
=
handle_testcaseclass_generic
(
testcasename
,
threadListGlobal
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
MachineListGeneric
,
user
,
pw
,
CleanUpAluLteBox
,
Timeout_execution
,
ExmimoRfStop
)
elif
(
testcaseclass
==
'execution'
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment