Skip to content

Commit

Permalink
Trim file pattern of launch artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Oct 11, 2024
1 parent a42f9f3 commit b33c1e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void ReportEventsSource_OnBeforeLaunchFinishing(Reporter.ILaunchReporter
{
foreach (var filePattern in artifactPaths)
{
var artifacts = Directory.GetFiles(BaseDirectory, filePattern);
var artifacts = Directory.GetFiles(BaseDirectory, filePattern.Trim());

foreach (var artifact in artifacts)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void ShouldAttachSingleArtifactByPath()
.Callback<CreateLogItemRequest, CancellationToken>((a, b) => request = a);

var config = new ConfigurationBuilder().Build();
config.Properties["launch:artifacts"] = "test_file_1.txt";
config.Properties["launch:artifacts"] = " test_file_1.txt ";

var launchReporter = new LaunchReporterBuilder(client.Object).With(_extensionManager).WithConfiguration(config).Build(1, 0, 0);
launchReporter.Sync();
Expand Down

0 comments on commit b33c1e1

Please sign in to comment.