Merged PR 32192: Set OmniSharp run script to be executable

Backport of https://github.com/dotnet/installer/pull/16772
This commit is contained in:
Matt Thalman 2023-06-22 22:11:11 +00:00
parent 2b8b3238ef
commit 1dbbc52520

View file

@ -6,6 +6,7 @@ using System;
using System.Diagnostics;
using System.IO;
using System.Net.Http;
using System.Security.AccessControl;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
@ -66,6 +67,9 @@ public class OmniSharpTests : SmokeTests
Directory.CreateDirectory(OmniSharpDirectory);
ExecuteHelper.ExecuteProcessValidateExitCode("tar", $"xzf {omniSharpTarballFile} -C {OmniSharpDirectory}", OutputHelper);
// Ensure the run script is executable (see https://github.com/OmniSharp/omnisharp-roslyn/issues/2547)
File.SetUnixFileMode($"{OmniSharpDirectory}/run", UnixFileMode.UserRead | UnixFileMode.UserExecute);
}
}
}