Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
apertis-tests
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frédéric Dalleau
apertis-tests
Commits
9408bdf8
Commit
9408bdf8
authored
9 years ago
by
Xavier Claessens
Committed by
Sjoerd Simons
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
common.sh: remove unused code
Differential Revision:
https://phabricator.apertis.org/D533
parent
38f5f68c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/common.sh
+0
-37
0 additions, 37 deletions
common/common.sh
with
0 additions
and
37 deletions
common/common.sh
+
0
−
37
View file @
9408bdf8
...
...
@@ -116,42 +116,6 @@ setup_failure() {
#############
# Utilities #
#############
# GSettings wrappers -- if you use these, ensure `libglib-2.0-bin` is installed
set_gsettings_key
()
{
local
schema key value
schema
=
$1
key
=
$2
value
=
$3
${
GSETTINGS
}
set
"
$schema
"
"
$key
"
"
$value
"
}
get_gsettings_key
()
{
local
schema key value
schema
=
$1
key
=
$2
${
GSETTINGS
}
get
"
$schema
"
"
$key
"
}
reset_gsettings_key
()
{
local
schema key
schema
=
$1
key
=
$2
${
GSETTINGS
}
reset
"
$schema
"
"
$key
"
}
reset_gsettings_schema
()
{
local
schema
schema
=
$1
${
GSETTINGS
}
reset-recursively
"
$schema
"
}
# Any string results will be returned in single quotes, so you must call the
# function like:
# gsettings_key_is org.freedesktop.foo bar "'qux'"
gsettings_key_is
()
{
[[
$(
get_gsettings_key
"
$1
"
"
$2
"
)
==
"
$3
"
]]
}
create_temp_workdir
()
{
local
tempdir
=
"
${
WORKDIR
}
/temp-
$RANDOM
"
mkdir
-vp
"
${
tempdir
}
"
1>&2
...
...
@@ -361,7 +325,6 @@ WGET="${WGET:-wget -c}"
# We disable apt-get, and just do a pass-through because these tests are
# integrated into LAVA now
#APT_GET="$(type -P true)"
GSETTINGS
=
"
${
GSETTINGS
:-
gsettings
}
"
GDBUS
=
"
${
GDBUS
:-
gdbus
}
"
# 0 = no output
...
...
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