Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
mediaserver
envsetup
Commits
a4545751
Commit
a4545751
authored
8 years ago
by
Karim
Browse files
Options
Downloads
Patches
Plain Diff
Test if testing package is already installed + clean repository, update
#18895
parent
c6907284
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
tests/test_apt.sh
+13
-2
13 additions, 2 deletions
tests/test_apt.sh
with
13 additions
and
2 deletions
tests/test_apt.sh
+
13
−
2
View file @
a4545751
#!/bin/bash
source
/root/envsetup/envsetup.conf
set
-e
echo
"Testing apt-get upgrade"
echo
"Clean repository"
apt-get clean
#Testing if sl package exists and remove it
dpkg
-l
|
awk
'{print $2}'
|
grep
'^sl$'
if
[
"
$?
"
-eq
"0"
]
;
then
echo
"Removing already installed testing package"
apt-get
-y
remove sl
fi
# Installation testing package sl
apt-get update
&&
apt-get
-y
install
sl
&&
apt-get
-y
remove sl
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