From b1bf64a6718104ca8e1b32f664aa382333875c62 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Thu, 29 Aug 2013 18:21:18 +0100 Subject: [PATCH] Fix updater test on Ubuntu 13.04 Set file permissions to match those specified in the updater script or in the case of new-dir/new-dir2 the mode hard-coded into FileUtils::mkdir() --- src/tests/test-update.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/test-update.rb b/src/tests/test-update.rb index 0ed1980..c7f615e 100755 --- a/src/tests/test-update.rb +++ b/src/tests/test-update.rb @@ -159,12 +159,15 @@ end Dir.mkdir(PACKAGE_SRC_DIR) nested_dir_path = "#{PACKAGE_SRC_DIR}/new-dir/new-dir2" FileUtils.mkdir_p(nested_dir_path) +FileUtils::chmod 0755, "#{PACKAGE_SRC_DIR}/new-dir" +FileUtils::chmod 0755, "#{PACKAGE_SRC_DIR}/new-dir/new-dir2" nested_dir_test_file = "#{nested_dir_path}/new-file.txt" File.open(nested_dir_test_file,'w') do |file| file.puts "this is a new file in a new nested dir" end - +FileUtils::chmod 0644, nested_dir_test_file FileUtils.cp(NEWAPP_NAME,"#{PACKAGE_SRC_DIR}/#{APP_NAME}") +FileUtils::chmod 0755, "#{PACKAGE_SRC_DIR}/#{APP_NAME}" # Create .zip packages from source files Dir.mkdir(PACKAGE_DIR)