┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/services/test
diff options
context:
space:
mode:
authorAlexander Potashev <[email protected]>2019-07-15 22:17:03 +0300
committerAlexander Potashev <[email protected]>2019-07-16 15:04:54 +0300
commitf523585f1be5cf2aca70d2e3b13dff7f05ffa2a1 (patch)
tree9edc887e4643247b38b263d96ad5624fe1313799 /src/settings/services/test
parentc951c63e14a272d273be2a7556bcf9298e4e7693 (diff)
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
Diffstat (limited to 'src/settings/services/test')
-rw-r--r--src/settings/services/test/service_menu_deinstallation_test.rb4
1 files changed, 4 insertions, 0 deletions
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