summaryrefslogtreecommitdiffstats
path: root/bin/test_torbrowser-launcher.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/test_torbrowser-launcher.sh')
-rwxr-xr-xbin/test_torbrowser-launcher.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/bin/test_torbrowser-launcher.sh b/bin/test_torbrowser-launcher.sh
index 3179149a..6de6c1c5 100755
--- a/bin/test_torbrowser-launcher.sh
+++ b/bin/test_torbrowser-launcher.sh
@@ -81,12 +81,13 @@ end_session() {
sleep 1
}
-upgrade_to_experimental_version() {
+upgrade_to_newer_packaged_version_in() {
+ local SUITE=$1
echo
- echo "$(date -u ) - upgrading to torbrowser-launcher from experimental…"
- echo "deb $MIRROR experimental main contrib" | schroot --run-session -c $SESSION --directory /tmp -u root -- tee -a /etc/apt/sources.list
+ echo "$(date -u ) - upgrading to torbrowser-launcher from $SUITE"
+ echo "deb $MIRROR $SUITE main contrib" | schroot --run-session -c $SESSION --directory /tmp -u root -- tee -a /etc/apt/sources.list
schroot --run-session -c $SESSION --directory /tmp -u root -- apt-get update
- schroot --run-session -c $SESSION --directory /tmp -u root -- apt-get -y install -t experimental torbrowser-launcher
+ schroot --run-session -c $SESSION --directory /tmp -u root -- apt-get -y install -t $SUITE torbrowser-launcher
}
build_and_upgrade_to_git_version() {
@@ -267,6 +268,9 @@ if [ "$2" = "git" ] ; then
elif [ "$SUITE" = "experimental" ] || [ "$2" = "experimental" ] ; then
SUITE=unstable
EXPERIMENTAL=yes
+elif [ "$2" = "backports" ] ; then
+ SUITE=unstable
+ BACKPORTS=yes
fi
WORKSPACE=$(pwd)
RESULTS=$WORKSPACE/results
@@ -284,7 +288,9 @@ begin_session
if [ "$2" = "git" ] ; then
build_and_upgrade_to_git_version
elif [ "$EXPERIMENTAL" = "yes" ] ; then
- upgrade_to_experimental_version
+ upgrade_to_newer_packaged_version_in experimental
+elif [ "$BACKPORTS" = "yes" ] ; then
+ upgrade_to_newer_packaged_version_in $SUITE-backports
fi
download_and_launch
end_session