Skip to content

Commit

Permalink
Chmodding the whole temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jan 21, 2025
1 parent bc69d2b commit 2eedf54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lombiq.Tests.UI/Services/UITestExecutionSession.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Atata.HtmlValidation;
using Cysharp.Text;
using Lombiq.HelpfulLibraries.Cli;
using Lombiq.HelpfulLibraries.Common.Utilities;
using Lombiq.Tests.UI.Constants;
using Lombiq.Tests.UI.Exceptions;
Expand Down Expand Up @@ -220,6 +221,12 @@ private async ValueTask ShutdownAsync()

try
{
if (GitHubHelper.IsGitHubEnvironment)
{
await new CliProgram("chmod")
.ExecuteAsync(_configuration.TestCancellationToken, "777", DirectoryPaths.GetTempDirectoryPath(contextId));
}

await DirectoryHelper.SafelyDeleteDirectoryIfExistsAsync(DirectoryPaths.GetTempDirectoryPath(contextId));
}
catch (Exception ex) when (GitHubHelper.IsGitHubEnvironment)
Expand Down

0 comments on commit 2eedf54

Please sign in to comment.