From 6442e8665723276d0c8357e5aebf05c58984adec Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Fri, 10 May 2024 18:45:31 +0000 Subject: [PATCH] backport of commit a701c3a14b4ae688df32b192739564b85084532d --- packer_test/loading_test.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packer_test/loading_test.go b/packer_test/loading_test.go index 461626540..b8def2454 100644 --- a/packer_test/loading_test.go +++ b/packer_test/loading_test.go @@ -152,12 +152,10 @@ func (ts *PackerTestSuite) TestPluginPathEnvvarWithMultiplePaths() { SetArgs("plugins", "installed"). Assert(ts.T(), MustFail(), Grep("Multiple paths are no longer supported for PACKER_PLUGIN_PATH"), - PipeChecker{ - check: IntCompare(eq, 2), - pipers: []Pipe{ - PipeGrep(`\* PACKER_PLUGIN_PATH=`), - LineCount(), - }, - }) + MkPipeCheck("All envvars are suggested", + PipeGrep(`\* PACKER_PLUGIN_PATH=`), + LineCount()). + SetStream(OnlyStderr). + SetTester(IntCompare(eq, 2))) }) }