From 751a45b07b9798fed4676ae8636956f6991bc4fd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 5 Jul 2022 01:55:13 -0500 Subject: 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. --- tests/spec/simulator_spec.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2