From f523585f1be5cf2aca70d2e3b13dff7f05ffa2a1 Mon Sep 17 00:00:00 2001 From: Alexander Potashev Date: Mon, 15 Jul 2019 22:17:03 +0300 Subject: servicemenuinstaller: Run installation scripts with cwd in their parent directories Summary: Otherwise, if cwd is set to the unpacked dir root, some service menus fail to install. Test Plan: - Successfully Installed and uninstalled the "Color Folder" service menu from "Configure Dolphin..." -> service menus -> KNewStuff. - ./test_run.rb still passes all its tests. Reviewers: elvisangelaccio, sitter Reviewed By: sitter Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D22466 --- src/settings/services/test/service_menu_deinstallation_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/settings/services/test') diff --git a/src/settings/services/test/service_menu_deinstallation_test.rb b/src/settings/services/test/service_menu_deinstallation_test.rb index 1c9856d94..4017e8ee0 100644 --- a/src/settings/services/test/service_menu_deinstallation_test.rb +++ b/src/settings/services/test/service_menu_deinstallation_test.rb @@ -44,10 +44,14 @@ class ServiceMenuDeinstallationTest < Test::Unit::TestCase FileUtils.mkpath(archive_dir) File.write("#{archive_dir}/deinstall.sh", <<-DEINSTALL_SH) #!/bin/sh +set -e +cat deinstall.sh touch #{@tmpdir}/deinstall.sh-run DEINSTALL_SH File.write("#{archive_dir}/install.sh", <<-INSTALL_SH) #!/bin/sh +set -e +cat install.sh touch #{@tmpdir}/install.sh-run INSTALL_SH -- cgit v1.3