@@ -350,14 +350,18 @@ func (s *IntegrationTestBuilder) AssertNoRenderShortcodesArtifacts() {
350350 }
351351}
352352
353+ func (s * IntegrationTestBuilder ) AssertWorkingDir (root string , matches ... string ) {
354+ s .AssertFs (s .fs .WorkingDirReadOnly , root , matches ... )
355+ }
356+
353357func (s * IntegrationTestBuilder ) AssertPublishDir (matches ... string ) {
354- s .AssertFs (s .fs .PublishDir , matches ... )
358+ s .AssertFs (s .fs .PublishDir , "" , matches ... )
355359}
356360
357- func (s * IntegrationTestBuilder ) AssertFs (fs afero.Fs , matches ... string ) {
361+ func (s * IntegrationTestBuilder ) AssertFs (fs afero.Fs , root string , matches ... string ) {
358362 s .Helper ()
359363 var buff bytes.Buffer
360- s .Assert (s .printAndCheckFs (fs , "" , & buff ), qt .IsNil )
364+ s .Assert (s .printAndCheckFs (fs , root , & buff ), qt .IsNil )
361365 printFsLines := strings .Split (buff .String (), "\n " )
362366 sort .Strings (printFsLines )
363367 content := strings .TrimSpace ((strings .Join (printFsLines , "\n " )))
@@ -665,17 +669,18 @@ func (s *IntegrationTestBuilder) initBuilder() error {
665669 flags = config .New ()
666670 }
667671
672+ internal := make (maps.Params )
673+
668674 if s .Cfg .Running {
669- flags .Set ("internal" , maps.Params {
670- "running" : s .Cfg .Running ,
671- "watch" : s .Cfg .Running ,
672- })
675+ internal ["running" ] = true
676+ internal ["watch" ] = true
677+
673678 } else if s .Cfg .Watching {
674- flags .Set ("internal" , maps.Params {
675- "watch" : s .Cfg .Watching ,
676- })
679+ internal ["watch" ] = true
677680 }
678681
682+ flags .Set ("internal" , internal )
683+
679684 if s .Cfg .WorkingDir != "" {
680685 flags .Set ("workingDir" , s .Cfg .WorkingDir )
681686 }
0 commit comments