Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
8ada7ce5
Commit
8ada7ce5
authored
May 02, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for Gitlab CI to detect failed machines
parent
e47ee57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+23
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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