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
zzha zzha
OpenXG-RAN
Commits
84a6f9f4
Commit
84a6f9f4
authored
Aug 23, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill old programs in test setup
parent
57f7b889
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+3
-2
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+2
-2
cmake_targets/autotests/tools/remove_old_programs.bash
cmake_targets/autotests/tools/remove_old_programs.bash
+3
-1
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
84a6f9f4
...
@@ -313,7 +313,7 @@ def SSHSessionWrapper(machine, username, key_file, password, logdir_remote, logd
...
@@ -313,7 +313,7 @@ def SSHSessionWrapper(machine, username, key_file, password, logdir_remote, logd
# \param CleanUpAluLteBox program to terminate AlU Bell Labs LTE Box
# \param CleanUpAluLteBox program to terminate AlU Bell Labs LTE Box
# \param ExmimoRfStop String to stop EXMIMO card (specified in test_case_list.xml)
# \param ExmimoRfStop String to stop EXMIMO card (specified in test_case_list.xml)
def
cleanOldPrograms
(
oai
,
programList
,
CleanUpAluLteBox
,
ExmimoRfStop
,
logdir
,
logdirOAI5GRepo
):
def
cleanOldPrograms
(
oai
,
programList
,
CleanUpAluLteBox
,
ExmimoRfStop
,
logdir
,
logdirOAI5GRepo
):
cmd
=
'killall -9 -q -r '
+
programList
cmd
=
'
sudo -E
killall -9 -q -r '
+
programList
result
=
oai
.
send
(
cmd
,
True
)
result
=
oai
.
send
(
cmd
,
True
)
print
"Killing old programs..."
+
result
print
"Killing old programs..."
+
result
programArray
=
programList
.
split
()
programArray
=
programList
.
split
()
...
@@ -1268,7 +1268,8 @@ except KeyError:
...
@@ -1268,7 +1268,8 @@ except KeyError:
sys
.
exit
(
1
)
sys
.
exit
(
1
)
print
"Killing zombie ssh sessions from earlier sessions..."
print
"Killing zombie ssh sessions from earlier sessions..."
cmd
=
'ps aux |grep
\"
/usr/bin/ssh -q -l guptar
\"
|tr -s
\"
\"
:|cut -f 2 -d :|xargs kill -9 '
cmd
=
'ps aux |grep
\"
/usr/bin/ssh -q -l guptar
\"
| awk
\'
{print $2}
\'
| sudo xargs kill -9 '
os
.
system
(
cmd
)
os
.
system
(
cmd
)
if
flag_start_testcase
==
False
:
if
flag_start_testcase
==
False
:
...
...
cmake_targets/autotests/test_case_list.xml
View file @
84a6f9f4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<GitOpenair-cnRepo>
https://gitlab.eurecom.fr/oai/openair-cn.git
</GitOpenair-cnRepo>
<GitOpenair-cnRepo>
https://gitlab.eurecom.fr/oai/openair-cn.git
</GitOpenair-cnRepo>
<GitOAI5GRepoBranch>
develop
</GitOAI5GRepoBranch>
<GitOAI5GRepoBranch>
develop
</GitOAI5GRepoBranch>
<GitOpenair-cnRepoBranch>
develop
</GitOpenair-cnRepoBranch>
<GitOpenair-cnRepoBranch>
develop
</GitOpenair-cnRepoBranch>
<CleanUpOldProgs>
oaisim oaisim_nos1 lte-softmodem lte-softmodem-nos1 mme_gw run_epc auth_request run_hss oai_hss mme spgw hss hss_sim configure_cots* wvdial iperf iperf_script iperf_script_phone ping tshark rrh_gw iperf3 iperf3_script iperf3_script_phone pppd
</CleanUpOldProgs>
<CleanUpOldProgs>
oaisim oaisim_nos1 lte-softmodem lte-softmodem-nos1 mme_gw run_epc auth_request run_hss oai_hss mme spgw hss hss_sim configure_cots* wvdial iperf iperf_script iperf_script_phone ping tshark rrh_gw iperf3 iperf3_script iperf3_script_phone pppd
starthss start_ltebox stop_ltebox
</CleanUpOldProgs>
<CleanUpAluLteBox>
sudo -S -E /opt/ltebox/tools/stop_ltebox
</CleanUpAluLteBox>
<CleanUpAluLteBox>
sudo -S -E /opt/ltebox/tools/stop_ltebox
</CleanUpAluLteBox>
<ExmimoRfStop>
exmimo_pci=`lspci -m | grep Xilinx`; if [ -n "$exmimo_pci" ] ; then $OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/stop_exmimo2; fi; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py --reset-ue; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py --reset-ue; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --stop-ue; uname -a; sudo -E dmesg
</ExmimoRfStop>
<ExmimoRfStop>
exmimo_pci=`lspci -m | grep Xilinx`; if [ -n "$exmimo_pci" ] ; then $OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/stop_exmimo2; fi; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py --reset-ue; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_huaweiE398_ue.py --reset-ue; sudo -E $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --stop-ue; uname -a; sudo -E dmesg
</ExmimoRfStop>
<Timeout_execution>
36000
</Timeout_execution>
<Timeout_execution>
36000
</Timeout_execution>
...
@@ -7896,4 +7896,4 @@ c
...
@@ -7896,4 +7896,4 @@ c
</testCaseList>
</testCaseList>
\ No newline at end of file
cmake_targets/autotests/tools/remove_old_programs.bash
View file @
84a6f9f4
#!/bin/bash
#!/bin/bash
#$1 programs to be killed and checked
#$1 programs to be killed and checked
var
=
`
ps
-A
|grep
-E
-i
$1
`
ps
-aux
|grep
-E
-i
$1
|
awk
\'
{
print
$2
}
\'
|
sudo
xargs
kill
-9
var
=
`
ps
-aux
|grep
-E
-i
$1
`
echo
$var
echo
$var
if
[
-n
"
$var
"
]
;
then
echo
'Match found'
;
else
echo
'Match not found'
;
fi
if
[
-n
"
$var
"
]
;
then
echo
'Match found'
;
else
echo
'Match not found'
;
fi
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