Fix tests on Windows
This commit is contained in:
parent
257b1a5e49
commit
6c143d74c2
@ -22,7 +22,7 @@ class TestPgLdapSync < Minitest::Test
|
|||||||
unless $?.success?
|
unless $?.success?
|
||||||
$stderr.puts "Command failed: [%s]\n%s" % [cmd.join(' '), File.read(fname)]
|
$stderr.puts "Command failed: [%s]\n%s" % [cmd.join(' '), File.read(fname)]
|
||||||
end
|
end
|
||||||
File.unlink fname
|
File.unlink fname rescue nil # File is locked on Windows
|
||||||
raise "Command failed: [%s]" % [cmd.join(' ')] unless $?.success?
|
raise "Command failed: [%s]" % [cmd.join(' ')] unless $?.success?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user