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
alex037yang
OpenXG-RAN
Commits
970b4b39
Commit
970b4b39
authored
Jan 15, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added option to stop the script by detault
parent
5b1cb169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+8
-2
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
970b4b39
...
@@ -1017,6 +1017,7 @@ locallogdir = openairdir_local + '/cmake_targets/autotests/log'
...
@@ -1017,6 +1017,7 @@ locallogdir = openairdir_local + '/cmake_targets/autotests/log'
MachineList
=
''
MachineList
=
''
MachineListGeneric
=
''
MachineListGeneric
=
''
flag_remove_logdir
=
False
flag_remove_logdir
=
False
flag_start_testcase
=
False
i
=
1
i
=
1
print
"Number of arguments argc = "
+
str
(
len
(
sys
.
argv
))
print
"Number of arguments argc = "
+
str
(
len
(
sys
.
argv
))
...
@@ -1024,7 +1025,9 @@ print "Number of arguments argc = " + str(len(sys.argv))
...
@@ -1024,7 +1025,9 @@ print "Number of arguments argc = " + str(len(sys.argv))
while
i
<
len
(
sys
.
argv
):
while
i
<
len
(
sys
.
argv
):
arg
=
sys
.
argv
[
i
]
arg
=
sys
.
argv
[
i
]
if
arg
==
'-r'
:
if
arg
==
'-r'
:
flag_remove_logdir
=
True
flag_remove_logdir
=
True
elif
arg
==
'-s'
:
flag_start_testcase
=
True
elif
arg
==
'-g'
:
elif
arg
==
'-g'
:
testcasegroup
=
sys
.
argv
[
i
+
1
].
replace
(
"
\"
"
,
""
)
testcasegroup
=
sys
.
argv
[
i
+
1
].
replace
(
"
\"
"
,
""
)
i
=
i
+
1
i
=
i
+
1
...
@@ -1065,6 +1068,7 @@ while i < len (sys.argv):
...
@@ -1065,6 +1068,7 @@ while i < len (sys.argv):
MachineListGeneric
=
MachineListGeneric
.
replace
(
"
\'
"
,
""
)
MachineListGeneric
=
MachineListGeneric
.
replace
(
"
\'
"
,
""
)
i
=
i
+
1
i
=
i
+
1
elif
arg
==
'-h'
:
elif
arg
==
'-h'
:
print
"-s: This flag *MUST* be set to start the test cases"
print
"-r: Remove the log directory in autotests"
print
"-r: Remove the log directory in autotests"
print
"-g: Run test cases in a group"
print
"-g: Run test cases in a group"
print
"-c: Run cleanup scripts on remote machines and exit"
print
"-c: Run cleanup scripts on remote machines and exit"
...
@@ -1103,7 +1107,9 @@ print "Killing zombie ssh sessions from earlier sessions..."
...
@@ -1103,7 +1107,9 @@ 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
\"
|tr -s
\"
\"
:|cut -f 2 -d :|xargs kill -9 '
os
.
system
(
cmd
)
os
.
system
(
cmd
)
if
flag_start_testcase
==
False
:
print
"You need to start the testcase by passing option -s. Use -h to see all options. Aborting now..."
sys
.
exit
(
1
)
# get the oai object
# get the oai object
host
=
os
.
uname
()[
1
]
host
=
os
.
uname
()[
1
]
...
...
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