commit 8737b32179e73c4c31c9d399f5395617563f72a3
parent 72b7c2b39e261ee0a0990015049ea14c342c7d67
Author: Johannes Lorenz <[email protected]>
Date: Fri, 30 Oct 2020 14:24:31 +0100
check-ports.rb: Do not require any PWD
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Tests/check-ports.rb b/src/Tests/check-ports.rb
@@ -3,14 +3,15 @@
require 'open3'
rval=0
+my_path=File.dirname(__FILE__)
# start zyn, grep the lo server port, and connect the port checker to it
-Open3.popen3(Dir.pwd + "/../zynaddsubfx -O null --no-gui") do |stdin, stdout, stderr, wait_thr|
+Open3.popen3(my_path + "/../zynaddsubfx -O null --no-gui") do |stdin, stdout, stderr, wait_thr|
pid = wait_thr[:pid]
while line=stderr.gets do
# print "line: " + line;
if /^lo server running on (\d+)$/.match(line) then
- port_checker_rval = system(Dir.pwd + "/../../rtosc/port-checker 'osc.udp://localhost:" + $1 + "/'")
+ port_checker_rval = system(my_path + "/../../rtosc/port-checker 'osc.udp://localhost:" + $1 + "/'")
if port_checker_rval != true then
puts "Error: port-checker has returned #{$?.exitstatus}."
rval=1