Test faiures read exit code instead of "FAILED" or "PASSED" strings

This commit is contained in:
ts
2019-02-04 17:29:38 +00:00
parent fcb2dc0e9b
commit 714b2c7b66
3 changed files with 19 additions and 18 deletions

View File

@@ -47,6 +47,7 @@ class PostProvisionTest
self.outputs << "PASSED: Port #{self.port} is open at #{get_system_ip} (#{get_system_name})!"
else
self.outputs << "FAILED: Port #{self.port} is closed at #{get_system_ip} (#{get_system_name})!"
exit(1)
end
end
@@ -63,6 +64,7 @@ class PostProvisionTest
self.outputs << "PASSED: Content #{match_string} is contained within #{page} at #{get_system_ip}:#{self.port} (#{get_system_name})!"
else
self.outputs << "FAILED: Content #{match_string} is contained within #{page} at #{get_system_ip}:#{self.port} (#{get_system_name})!"
exit(1)
end
end