Skip to content

Commit 92afa99

Browse files
committed
chmodx
1 parent 8171c2e commit 92afa99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/dotnet-watch.Tests/TestUtilities/WatchableApp.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ public void SendKey(char c)
212212

213213
public void UseTestBrowser()
214214
{
215-
EnvironmentVariables.Add("DOTNET_WATCH_BROWSER_PATH", GetTestBrowserPath());
215+
var path = GetTestBrowserPath();
216+
EnvironmentVariables.Add("DOTNET_WATCH_BROWSER_PATH", path);
217+
218+
if (!OperatingSystem.IsWindows())
219+
{
220+
File.SetUnixFileMode(path, UnixFileMode.UserExecute);
221+
}
216222
}
217223

218224
public static string GetTestBrowserPath()

0 commit comments

Comments
 (0)