Skip to content

Commit 6c029f5

Browse files
committed
fix work dir
1 parent aaae86f commit 6c029f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.fsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -642,30 +642,30 @@ Target.create "HostDocs" (fun _ ->
642642
System.Console.ReadKey() |> ignore
643643
)
644644

645-
let runExpecto dllPath resultsXml =
645+
let runExpecto workDir dllPath resultsXml =
646646
let processResult =
647-
DotNet.exec (dtntWorkDir root) (sprintf "%s" dllPath) "--summary"
647+
DotNet.exec (dtntWorkDir workDir) (sprintf "%s" dllPath) "--summary"
648648

649649
if processResult.ExitCode <> 0 then failwithf "Tests in %s failed." (Path.GetFileName dllPath)
650-
Trace.publish (ImportData.Nunit NunitDataVersion.Nunit) resultsXml
650+
Trace.publish (ImportData.Nunit NunitDataVersion.Nunit) (workDir </> resultsXml)
651651

652652
Target.create "DotNetCoreIntegrationTests" (fun _ ->
653653
cleanForTests()
654654

655-
runExpecto "src/test/Fake.Core.IntegrationTests/bin/Release/netcoreapp2.1/Fake.Core.IntegrationTests.dll" "Fake_Core_IntegrationTests.TestResults.xml"
655+
runExpecto root "src/test/Fake.Core.IntegrationTests/bin/Release/netcoreapp2.1/Fake.Core.IntegrationTests.dll" "Fake_Core_IntegrationTests.TestResults.xml"
656656
)
657657

658658
Target.create "TemplateIntegrationTests" (fun _ ->
659659
let targetDir = srcDir </> "test" </> "Fake.DotNet.Cli.IntegrationTests"
660-
runExpecto "bin/Release/netcoreapp2.1/Fake.DotNet.Cli.IntegrationTests.dll" (targetDir </> "Fake_DotNet_Cli_IntegrationTests.TestResults.xml")
660+
runExpecto targetDir "bin/Release/netcoreapp2.1/Fake.DotNet.Cli.IntegrationTests.dll" "Fake_DotNet_Cli_IntegrationTests.TestResults.xml"
661661
)
662662

663663
Target.create "DotNetCoreUnitTests" (fun _ ->
664664
// dotnet run -p src/test/Fake.Core.UnitTests/Fake.Core.UnitTests.fsproj
665-
runExpecto "src/test/Fake.Core.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.UnitTests.dll" ("Fake_Core_UnitTests.TestResults.xml")
665+
runExpecto root "src/test/Fake.Core.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.UnitTests.dll" ("Fake_Core_UnitTests.TestResults.xml")
666666

667667
// dotnet run --project src/test/Fake.Core.CommandLine.UnitTests/Fake.Core.CommandLine.UnitTests.fsproj
668-
runExpecto "src/test/Fake.Core.CommandLine.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.CommandLine.UnitTests.dll" ("Fake_Core_CommandLine_UnitTests.TestResults.xml")
668+
runExpecto root "src/test/Fake.Core.CommandLine.UnitTests/bin/Release/netcoreapp2.1/Fake.Core.CommandLine.UnitTests.dll" ("Fake_Core_CommandLine_UnitTests.TestResults.xml")
669669
)
670670

671671
Target.create "BootstrapTestDotNetCore" (fun _ ->

0 commit comments

Comments
 (0)