Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 45981be

Browse filesBrowse files
author
Tom Laird-McConnell
committed
Remove local path debug code which obviously won't run on the server
1 parent 3a25982 commit 45981be
Copy full SHA for 45981be

File tree

Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed
Open diff view settings
Collapse file

‎src/Dotnet.Script.Tests/ScaffoldingTests.cs‎

Copy file name to clipboardExpand all lines: src/Dotnet.Script.Tests/ScaffoldingTests.cs
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,22 @@ public void ShouldRunCsxScriptDirectly()
5858
{
5959
using (var scriptFolder = new DisposableFolder())
6060
{
61-
var scriptFolderPath = Path.Combine(Path.GetTempPath(), "xyz");
62-
Directory.CreateDirectory(scriptFolderPath);
63-
var (output, exitCode) = ScriptTestRunner.Default.Execute("init", scriptFolderPath);
61+
Directory.CreateDirectory(scriptFolder.Path);
62+
var (output, exitCode) = ScriptTestRunner.Default.Execute("init", scriptFolder.Path);
6463

65-
var scriptPath = Path.Combine(scriptFolderPath, "main.csx");
64+
var scriptPath = Path.Combine(scriptFolder.Path, "main.csx");
6665

6766
if (ScriptEnvironment.Default.IsWindows)
6867
{
69-
(output, exitCode) = ProcessHelper.RunAndCaptureOutput("cmd.exe", $"/c \"{scriptPath}\"", scriptFolderPath);
68+
(output, exitCode) = ProcessHelper.RunAndCaptureOutput("cmd.exe", $"/c \"{scriptPath}\"", scriptFolder.Path);
7069
Assert.Equal("Hello world!", output.Trim());
7170
}
7271
else
7372
{
7473
// this depends on dotnet-script being installed as a dotnet global tool because the shebang needs to
7574
// point to an executable in the environment. If you have dotnet-script installed as a global tool this
7675
// test will pass
77-
(output, exitCode) = ProcessHelper.RunAndCaptureOutput("dotnet-script", $"-h", scriptFolderPath);
76+
(output, exitCode) = ProcessHelper.RunAndCaptureOutput("dotnet-script", $"-h", scriptFolder.Path);
7877
if (exitCode == 0)
7978
{
8079
(output, exitCode) = ProcessHelper.RunAndCaptureOutput(scriptPath, "");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.