Skip to content

Commit

Permalink
realpath in file creation added
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricup committed Dec 18, 2017
1 parent 3efe424 commit 9ead632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-base/test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def TestBase.find_free_port(port = 1098)
end

def create_file(script_name, lines)
script_path = File.join(TMP_DIR, script_name)
script_path = File.realdirpath(File.join(TMP_DIR, script_name))

File.open(script_path, "w") do |script|
script.printf(lines.join("\n"))
end
Expand Down

0 comments on commit 9ead632

Please sign in to comment.