summaryrefslogtreecommitdiffstats
path: root/tasks/upgrade-basic/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/upgrade-basic/runtest.sh')
-rw-r--r--tasks/upgrade-basic/runtest.sh36
1 files changed, 2 insertions, 34 deletions
diff --git a/tasks/upgrade-basic/runtest.sh b/tasks/upgrade-basic/runtest.sh
index 3863479..5dd85bb 100644
--- a/tasks/upgrade-basic/runtest.sh
+++ b/tasks/upgrade-basic/runtest.sh
@@ -1,38 +1,6 @@
-arch=$(uname -i)
-
dtf_postgresql_test_init
-test_wrapper()
-{
- dtf_postgresql_upgrade_matrix | \
- while read distro version action; do
- echo "performing upgrade: $distro-$version - $action"
-
- url="$dtf_dataurl/$distro/$version/$arch/basic.tar.gz"
-
- dtf_postgresql_unpack_remote_data "$url" || return 1
-
- case "$action" in
- upgrade)
- if rlIsFedora 22; then
- dashdash="--"
- fi
- rlRun "postgresql-setup $dashdash""upgrade"
- ;;
- *)
- ;;
- esac
-
- rlServiceStart postgresql
- dtf_postgresql_check_started
- rlServiceStop postgresql
- dtf_postgresql_check_stopped
-
- rm -rf /var/lib/pgsql/data
- done
-}
-
-test_wrapper
-rlAssert0 "test_wrapper() should finish successfully" $?
+dtf_postgresql_upgrade_tour "$dtf_dataurl" basic.tar.gz
+rlAssert0 "test wrapper should finish successfully" $?
dtf_postgresql_test_finish