From 133b728f61f76fd057c11c0d3d70c0f99360d9ad Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 19 Aug 2016 15:44:32 -0700 Subject: [PATCH] (maint) Fix Rakefile when specifying BEAKER_HOSTS When specifying BEAKER_HOSTS, TEST_TARGET does not need to be set. However, the Rakefile errors if run without TEST_TARGET set. Update to check that TEST_TARGET is not nil before trying to check start_with. --- acceptance/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptance/Rakefile b/acceptance/Rakefile index bdb60ca8..2f37f298 100644 --- a/acceptance/Rakefile +++ b/acceptance/Rakefile @@ -88,7 +88,7 @@ EOS target = ENV['TEST_TARGET'] master_host = ENV['MASTER_TEST_TARGET'] || 'redhat7-64m' - if !target.start_with?(master_host) + if target && !target.start_with?(master_host) target = "#{master_host}-#{target}" end if config and File.exists?(config)