Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Qingqing Huang
openairinterface5G
Commits
95873847
Commit
95873847
authored
9 years ago
by
Rohit Gupta
Browse files
Options
Downloads
Patches
Plain Diff
minor updates to the autotest launch script
parent
6f9a17cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake_targets/autotests/run_exec_autotests.bash
+4
-3
4 additions, 3 deletions
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/build_oai
+9
-4
9 additions, 4 deletions
cmake_targets/build_oai
with
13 additions
and
7 deletions
cmake_targets/autotests/run_exec_autotests.bash
+
4
−
3
View file @
95873847
...
...
@@ -400,12 +400,13 @@ else
fi
tmpfile
=
`
mktemp
`
echo
\'
$passwd
\'
|
sudo
echo
$HOME
>
&
$tmpfile
echo
\'
$passwd
\'
|
$SUDO
echo
$HOME
>
&
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo
"User might not have sudo privileges. Exiting"
echo
"tstsudo =
$tstsudo
"
echo
"
$USER
might not have sudo privileges. Exiting"
exit
else
echo
"
$USER
has sudo privileges"
fi
echo
"tstsudo =
$tstsudo
"
rm
-fr
$tmpfile
...
...
This diff is collapsed.
Click to expand it.
cmake_targets/build_oai
+
9
−
4
View file @
95873847
...
...
@@ -555,17 +555,22 @@ function main() {
#####################
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
echo_info
"10. Running OAI pre commit tests (pre-ci) ..."
read
-s
-p
"Enter Password: "
mypassword
echo
-e
"
\n
"
echo_error
"These scripts ASSUME that user is in /etc/sudoers and can execute commands without PASSWORD prompt"
echo_error
"Add the following lines in /etc/sudoers file to make your __user_name__ sudo without password prompt"
echo_error
" __your_user_name__ ALL = (ALL:ALL) NOPASSWD: ALL"
echo_error
" __your_user_name__ ALL = (ALL) NOPASSWD: ALL "
echo_info
"The log file for the autotest script for debugging is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log "
echo_info
"The results of autotests results is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/results_autotests.xml "
echo_info
"You can hit CTRL-C any time to terminate the autotests..."
echo
"Current User Name:
$USER
"
read
-s
-p
"Enter Password: "
mypassword
echo
-e
"
\n
"
rm
-fr
$OPENAIR_DIR
/cmake_targets/autotests/log
mkdir
-p
$OPENAIR_DIR
/cmake_targets/autotests/log
if
[
"
$RUN_GROUP
"
-eq
"1"
]
;
then
echo
'$mypassword'
|
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
-p
'$mypassword'
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
else
echo
'$mypassword'
|
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-p
'$mypassword'
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
fi
wait
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment