summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-06-09 15:45:27 +0000
committerintrigeri <intrigeri@boum.org>2019-06-09 15:45:27 +0000
commit91703528e5ee6a91ba151e5351e011ccebad6c99 (patch)
tree58192cf23367eb85a228199bce99f63ff358c290
parentb7eb54d3c98cfebc2d428ec63824a9034ecc3145 (diff)
Test suite: simplify.
Don't uselessly quote Ruby code as a string, only to then tell Ruby to execute that string.
-rw-r--r--features/support/helpers/misc_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/support/helpers/misc_helpers.rb b/features/support/helpers/misc_helpers.rb
index 7bdc8d9..b52553a 100644
--- a/features/support/helpers/misc_helpers.rb
+++ b/features/support/helpers/misc_helpers.rb
@@ -165,7 +165,7 @@ def wait_until_tor_is_working
rescue Timeout::Error
# Save Tor logs before erroring out
File.open("#{$config["TMPDIR"]}/log.tor", 'w') { |file|
- file.write("#{$vm.execute('journalctl --no-pager -u tor@default.service').stdout}")
+ file.write($vm.execute('journalctl --no-pager -u tor@default.service').stdout)
file.write($vm.file_content('/var/log/tor/log'))
}
raise TorBootstrapFailure.new('Tor failed to bootstrap')