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
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
Patricio Latini
openairinterface5G
Commits
8f9b55d7
Commit
8f9b55d7
authored
9 years ago
by
Florian Kaltenberger
Browse files
Options
Downloads
Patches
Plain Diff
fix for sudo usage in autotests
parent
0b58a7e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/autotests/run_exec_autotests.bash
+3
-5
3 additions, 5 deletions
cmake_targets/autotests/run_exec_autotests.bash
with
3 additions
and
5 deletions
cmake_targets/autotests/run_exec_autotests.bash
+
3
−
5
View file @
8f9b55d7
...
@@ -404,14 +404,12 @@ until [ -z "$1" ]
...
@@ -404,14 +404,12 @@ until [ -z "$1" ]
esac
esac
done
done
if
[
"
$SET_PASSWORD
"
==
"1"
]
;
then
if
[
"
$SET_PASSWORD
"
!=
"1"
]
;
then
mypassword
=
$passwd
read
-s
-p
"Enter Password: "
passwd
else
read
-s
-p
"Enter Password: "
mypassword
fi
fi
tmpfile
=
`
mktemp
`
tmpfile
=
`
mktemp
`
echo
\'
$passwd
\'
|
$SUDO
echo
$HOME
>
&
$tmpfile
echo
$passwd
|
$SUDO
echo
$HOME
>
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo
"
$USER
might not have sudo privileges. Exiting"
echo
"
$USER
might not have sudo privileges. Exiting"
...
...
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