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
wangjie
OpenXG-RAN
Commits
bfeae0a0
Commit
bfeae0a0
authored
Dec 04, 2020
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing RA test iteration when failing
parent
a371f558
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+10
-9
No files found.
ci-scripts/runTestOnVM.sh
View file @
bfeae0a0
...
@@ -2200,7 +2200,7 @@ function run_test_on_vm {
...
@@ -2200,7 +2200,7 @@ function run_test_on_vm {
mkdir
--parents
$ARCHIVES_LOC
mkdir
--parents
$ARCHIVES_LOC
fi
fi
local
try_cnt
=
"0"
local
try_cnt
=
0
NR_STATUS
=
0
NR_STATUS
=
0
######### start of RA TEST loop
######### start of RA TEST loop
...
@@ -2232,7 +2232,7 @@ function run_test_on_vm {
...
@@ -2232,7 +2232,7 @@ function run_test_on_vm {
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
SYNC_STATUS
=
-1
SYNC_STATUS
=
-1
try_cnt
=
$
[$try_cnt
+1]
try_cnt
=
$
((
try_cnt+1
))
continue
continue
fi
fi
...
@@ -2255,9 +2255,10 @@ function run_test_on_vm {
...
@@ -2255,9 +2255,10 @@ function run_test_on_vm {
if
[
$RA_STATUS
-ne
0
]
if
[
$RA_STATUS
-ne
0
]
then
then
echo
"RA test NOT OK"
echo
"RA test NOT OK"
try_cnt
=
$[$try_cnt
+1]
echo
"try_cnt = "
$try_cnt
try_cnt
=
$((
try_cnt+1
))
else
else
try_cnt
=
$
[$try_cnt
+10]
try_cnt
=
$
((
try_cnt+10
))
fi
fi
done
done
########### end RA test
########### end RA test
...
@@ -2266,7 +2267,7 @@ function run_test_on_vm {
...
@@ -2266,7 +2267,7 @@ function run_test_on_vm {
######### start of PHY TEST loop
######### start of PHY TEST loop
try_cnt
=
"0"
try_cnt
=
0
while
[
$try_cnt
-lt
4
]
while
[
$try_cnt
-lt
4
]
do
do
...
@@ -2297,7 +2298,7 @@ function run_test_on_vm {
...
@@ -2297,7 +2298,7 @@ function run_test_on_vm {
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
SYNC_STATUS
=
-1
SYNC_STATUS
=
-1
try_cnt
=
$
[$try_cnt
+1]
try_cnt
=
$
((
try_cnt+1
))
continue
continue
fi
fi
...
@@ -2337,7 +2338,7 @@ function run_test_on_vm {
...
@@ -2337,7 +2338,7 @@ function run_test_on_vm {
terminate_enb_ue_basic_sim
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
1
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
try_cnt
=
$
[$try_cnt
+1]
try_cnt
=
$
((
try_cnt+1
))
continue
continue
fi
fi
...
@@ -2363,9 +2364,9 @@ function run_test_on_vm {
...
@@ -2363,9 +2364,9 @@ function run_test_on_vm {
if
[
$IPERF_STATUS
-ne
0
]
if
[
$IPERF_STATUS
-ne
0
]
then
then
echo
"UL test not OK"
echo
"UL test not OK"
try_cnt
=
$
[$try_cnt
+1]
try_cnt
=
$
((
try_cnt+1
))
else
else
try_cnt
=
$
[$try_cnt
+10]
try_cnt
=
$
((
try_cnt+10
))
fi
fi
done
done
######### end of loop
######### end of loop
...
...
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