Skip to content

Commit

Permalink
(maint) fix up integration test
Browse files Browse the repository at this point in the history
Instead of removing an attribute, it appears we were leaving
a file with a hidden attribute set, that would make the build
fail until that file was dealt with. Ensure we don't leave the
file in a bad state by explicitly removing the attribute.
  • Loading branch information
ferventcoder committed Oct 2, 2015
1 parent 8840209 commit f87bc08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public override void Context()
{
base.Context();
SourceFile = Path.Combine(DestinationPath, "attributes.txt");
File.SetAttributes(SourceFile, (FileSystem.get_file_info_for(SourceFile).Attributes | FileAttributes.Hidden));
File.SetAttributes(SourceFile, (FileSystem.get_file_info_for(SourceFile).Attributes & ~FileAttributes.Hidden));
}

public override void Because()
Expand All @@ -162,7 +162,7 @@ public void visible_file_should_now_be_hidden()
public override void AfterObservations()
{
base.AfterObservations();
File.SetAttributes(SourceFile, (FileSystem.get_file_info_for(SourceFile).Attributes | FileAttributes.Hidden));
File.SetAttributes(SourceFile, (FileSystem.get_file_info_for(SourceFile).Attributes & ~FileAttributes.Hidden));
}
}

Expand Down

0 comments on commit f87bc08

Please sign in to comment.