From 2eedf54cb92ddebe0e25859dca97b70687c686b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 21 Jan 2025 05:01:04 +0100 Subject: [PATCH] Chmodding the whole temp dir --- Lombiq.Tests.UI/Services/UITestExecutionSession.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lombiq.Tests.UI/Services/UITestExecutionSession.cs b/Lombiq.Tests.UI/Services/UITestExecutionSession.cs index d6615ad38..91bdd4d3d 100644 --- a/Lombiq.Tests.UI/Services/UITestExecutionSession.cs +++ b/Lombiq.Tests.UI/Services/UITestExecutionSession.cs @@ -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; @@ -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)