summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2014-10-03 18:34:43 +0000
committerTails developers <amnesia@boum.org>2014-10-03 18:34:43 +0000
commite625baa1c3811e69c19c4dacbe37ee4b2cb107ec (patch)
tree0afda408246d55170082a21b8e0f0f679a0af471
parentdbb251cf0ab35846f5e5baa4fae734cfa38a442c (diff)
Fix bug in file copy: we were ignoring the specified destination.
-rw-r--r--features/step_definitions/totem.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/features/step_definitions/totem.rb b/features/step_definitions/totem.rb
index 02f5deb..d125f4e 100644
--- a/features/step_definitions/totem.rb
+++ b/features/step_definitions/totem.rb
@@ -19,8 +19,9 @@ Given /^I copy the sample videos to "([^"]+)" as user "([^"]+)"$/ do |destinatio
next if @skip_steps_while_restoring_background
for video_on_host in Dir.glob("#{$misc_files_dir}/*.mp4") do
video_name = File.basename(video_on_host)
- video_on_guest = "/home/#{$live_user}/#{video_name}"
- step "I copy \"#{shared_video_dir_on_guest}/#{video_name}\" to \"#{video_on_guest}\" as user \"amnesia\""
+ src_on_guest = "#{shared_video_dir_on_guest}/#{video_name}"
+ dst_on_guest = "#{destination}/#{video_name}"
+ step "I copy \"#{src_on_guest}\" to \"#{dst_on_guest}\" as user \"amnesia\""
end
end