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
spbro
OpenXG-RAN
Commits
971ab65f
Commit
971ab65f
authored
May 31, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Physims don't need sudo
parent
13517cd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
21 deletions
+2
-21
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/autotests/run_exec_autotests.bash
+0
-12
cmake_targets/build_oai
cmake_targets/build_oai
+2
-9
No files found.
cmake_targets/autotests/run_exec_autotests.bash
View file @
971ab65f
...
...
@@ -30,7 +30,6 @@ fi
source
$OPENAIR_DIR
/cmake_targets/tools/test_helper
SUDO
=
"sudo -E"
tdir
=
$OPENAIR_DIR
/cmake_targets/autotests
rm
-fr
$tdir
/bin
mkdir
-p
$tdir
/bin
...
...
@@ -178,8 +177,6 @@ RUN_GROUP=0
test_case_group
=
""
test_case_group_array
=()
test_case_array
=()
echo_info
"Note that the user should be sudoer for executing certain commands, for example loading kernel modules"
until
[
-z
"
$1
"
]
;
do
case
"
$1
"
in
...
...
@@ -207,15 +204,6 @@ until [ -z "$1" ]; do
esac
done
tmpfile
=
`
mktemp
`
$SUDO
echo
$HOME
>
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo_error
"
$USER
does not have sudo privileges. Exiting"
exit
fi
rm
-fr
$tmpfile
test_case_excl_list
=
`
xmlstarlet sel
-t
-v
"/testCaseList/TestCaseExclusionList"
$xml_conf
`
test_case_excl_list
=
`
sed
"s/
\+
/
\*
/g"
<<<
"
$test_case_excl_list
"
`
# Replace + with * for bash string substituion
echo
"Test Case Exclusion List =
$test_case_excl_list
"
...
...
cmake_targets/build_oai
View file @
971ab65f
...
...
@@ -542,22 +542,15 @@ function main() {
# Auto-tests #
##############
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
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 at 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
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
-p
$mypassword
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log
else
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-p
$mypassword
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log
fi
wait
else
...
...
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