summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-12-19 01:19:14 +0100
committerHolger Levsen <holger@layer-acht.org>2014-12-21 09:47:00 +0100
commit6a4f66e94a15948e90ae0583f8f4c3814ce58f3b (patch)
tree2c232b0e51db194492e652113df6145faf71e49b /features
parentdf5ba847892f305daa05bb4496d7caf522d8f533 (diff)
downloadjenkins.debian.net-6a4f66e94a15948e90ae0583f8f4c3814ce58f3b.tar.xz
lvc: set RUBYLIB and adopt features accordingly
Diffstat (limited to 'features')
-rw-r--r--features/support/config.rb6
-rw-r--r--features/support/env.rb2
-rw-r--r--features/support/helpers/sikuli_helper.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/features/support/config.rb b/features/support/config.rb
index b5f6fcd9..9e20b61d 100644
--- a/features/support/config.rb
+++ b/features/support/config.rb
@@ -1,12 +1,12 @@
require 'fileutils'
-require "#{Dir.pwd}/features/support/helpers/misc_helpers.rb"
+require "features/support/helpers/misc_helpers.rb"
# Dynamic
$tails_iso = ENV['ISO'] || get_newest_iso
$old_tails_iso = ENV['OLD_ISO'] || get_oldest_iso
$tmp_dir = ENV['TEMP_DIR'] || "/tmp/TailsToaster"
-$vm_xml_path = ENV['VM_XML_PATH'] || "#{Dir.pwd}/features/domains"
-$misc_files_dir = "#{Dir.pwd}/features/misc_files"
+$vm_xml_path = ENV['VM_XML_PATH'] || "features/domains"
+$misc_files_dir = "features/misc_files"
$keep_snapshots = !ENV['KEEP_SNAPSHOTS'].nil?
$x_display = ENV['DISPLAY']
$debug = !ENV['DEBUG'].nil?
diff --git a/features/support/env.rb b/features/support/env.rb
index 523a1d1c..3fa5c371 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,5 +1,5 @@
require 'rubygems'
-require "#{Dir.pwd}/features/support/extra_hooks.rb"
+require "features/support/extra_hooks.rb"
require 'time'
require 'rspec'
diff --git a/features/support/helpers/sikuli_helper.rb b/features/support/helpers/sikuli_helper.rb
index f6211be7..12f49603 100644
--- a/features/support/helpers/sikuli_helper.rb
+++ b/features/support/helpers/sikuli_helper.rb
@@ -124,7 +124,7 @@ def sikuli_script_proxy.new(*args)
end
# Configure sikuli
-java.lang.System.setProperty("SIKULI_IMAGE_PATH", "#{Dir.pwd}/features/images/")
+java.lang.System.setProperty("SIKULI_IMAGE_PATH", "features/images/")
# ruby and rjb doesn't play well together when it comes to static
# fields (and possibly methods) so we instantiate and access the field