Skip to content

Commit

Permalink
Merge pull request #235 from zvezdan/fix-env-regex
Browse files Browse the repository at this point in the history
Fix the regex for environment check in integ tests.
  • Loading branch information
zvezdan authored Jul 9, 2018
2 parents 5db22d2 + ebf8294 commit d544577
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class PackageSettingsIntegrationTest extends Specification {
println result.output

then: "we can observe the environment for 'foo' provided a few lines after its install is logged"
def match = result.output.find(/Installing foo[\s\S]+?Environment for[^\n]+: \{[^}]+\}/)
def match = result.output.find(/Installing foo[\s\S]+?Environment for[^\n]+: \{.+\}\s*\n/)
match != null
match.findAll('Installing ').size() == 1
match.contains('CPPFLAGS=-I/some/custom/path/include')
Expand Down Expand Up @@ -347,7 +347,7 @@ class PackageSettingsIntegrationTest extends Specification {
println result.output

then: "we can observe the environment for 'foo' provided a few lines after its build is logged"
def match = result.output.find(/Installing foo\S* wheel[\s\S]+?Environment for[^\n]+: \{[^}]+\}/)
def match = result.output.find(/Installing foo\S* wheel[\s\S]+?Environment for[^\n]+: \{.+\}\s*\n/)
match != null
match.findAll('Installing ').size() == 1
match.contains('CPPFLAGS=-I/some/custom/path/include')
Expand Down

0 comments on commit d544577

Please sign in to comment.