Commit 5c5d8728 authored by Tails developers's avatar Tails developers

Remove duplicated helper function: we've introduced directory_exist? recently.

parent 5915cdf0
Then /^the git repository "([\S]+)" has been cloned successfully$/ do |repo|
next if @skip_steps_while_restoring_background
assert(@vm.dir_exist?("/home/#{$live_user}/#{repo}/.git"))
assert(@vm.directory_exist?("/home/#{$live_user}/#{repo}/.git"))
assert(@vm.file_exist?("/home/#{$live_user}/#{repo}/.git/config"))
assert(@vm.execute("cd /home/#{$live_user}/#{repo}/ && git status", $live_user))
end
......@@ -376,10 +376,6 @@ EOF
execute("test -d '#{directory}'").success?
end
def dir_exist?(dir)
execute("test -d #{dir}").success?
end
def file_content(file, user = 'root')
# We don't quote #{file} on purpose: we sometimes pass environment variables
# or globs that we want to be interpreted by the shell.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment