From 8351629c862e5a5f55e0e3a87950c5c55f995e99 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 20 Oct 2019 00:29:05 -0500 Subject: Fix tests when install env code is disabled --- tests/spec/validator_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/spec/validator_spec.rb') diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index 36af73a..d0b9590 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -486,17 +486,20 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do it "succeeds with present disk" do use_fixture '0078-diskid-diskid-loop0.installfile' run_validate ' -i' + skip "This build does not support this test" if last_command_started.stdout =~ /runtime environment only/ expect(last_command_started).to have_output(PARSER_SUCCESS) expect(last_command_started).to have_output(VALIDATOR_SUCCESS) end it "fails with non-present disk" do use_fixture '0079-diskid-enoent.installfile' run_validate ' -i' + skip "This build does not support this test" if last_command_started.stdout =~ /runtime environment only/ expect(last_command_started).to have_output(/No such file or directory/) end it "fails with non-disk file" do use_fixture '0080-diskid-tmp.installfile' run_validate ' -i' + skip "This build does not support this test" if last_command_started.stdout =~ /runtime environment only/ expect(last_command_started).to have_output(/error: .*diskid.*block/) end it "fails with a duplicate identification device" do -- cgit v1.2.3-60-g2f50