summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-07-05 01:55:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-07-05 01:55:13 -0500
commit751a45b07b9798fed4676ae8636956f6991bc4fd (patch)
tree3d233fa4c1ba1a288f7865657f8f2cde1b8435ae /tests
parent5d9cb10a1075f3bc280f0b0c229c310056649d5e (diff)
downloadhorizon-751a45b07b9798fed4676ae8636956f6991bc4fd.tar.gz
horizon-751a45b07b9798fed4676ae8636956f6991bc4fd.tar.bz2
horizon-751a45b07b9798fed4676ae8636956f6991bc4fd.tar.xz
horizon-751a45b07b9798fed4676ae8636956f6991bc4fd.zip
tests: Add an stdout check to the simulator check
There's a weird failure that is hard to debug, and this will help. Additionally, this shouldn't cause any issues on passing builds.
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/simulator_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb
index 396b77a..a06b922 100644
--- a/tests/spec/simulator_spec.rb
+++ b/tests/spec/simulator_spec.rb
@@ -36,6 +36,7 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do
it "handles validation failures correctly" do
use_fixture '0240-bootloader-invalid.installfile'
run_simulate
+ expect(last_command_started.stdout).to start_with("#!/bin/sh")
expect(last_command_started.stderr).to include("Script failed. Stop.")
end
context "simulating 'disklabel' execution" do