aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stress_test.rb
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2017-03-12 01:03:55 +0000
committerMartin Pärtel <martin.partel@gmail.com>2017-03-12 01:03:55 +0000
commit8437e3fc441ba5e38c57c571ba477237a72ea66d (patch)
tree56d1a4617cbd86e1b80410ee2aba1f8c282050fa /tests/stress_test.rb
parent040989a14ad2265f4835121fd138654f6424150f (diff)
downloadbindfs-8437e3fc441ba5e38c57c571ba477237a72ea66d.tar.gz
Hacked tests to work with Ruby 1.8.7 and FUSE 2.8 again.
The test suite now passes under Ubuntu 12.04 and CentOS 6. Fixes #49
Diffstat (limited to 'tests/stress_test.rb')
-rwxr-xr-xtests/stress_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/stress_test.rb b/tests/stress_test.rb
index 88804ba..70bf767 100755
--- a/tests/stress_test.rb
+++ b/tests/stress_test.rb
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
-require './common.rb'
+# if we are being run by make check it will set srcdir and we should use it
+$LOAD_PATH << (ENV['srcdir'] || '.')
+require 'common.rb'
require 'shellwords'
if ARGV.length == 0 || ['-h', '--help'].include?(ARGV[0])