File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { join } from "path/mod.ts";
1515import * as colors from "fmt/colors.ts" ;
1616import { runningInCI } from "../src/core/ci-info.ts" ;
1717import { relative } from "path/mod.ts" ;
18+ import { quartoConfig } from "../src/core/quarto.ts" ;
1819
1920export interface TestDescriptor {
2021 // The name of the test
@@ -179,7 +180,12 @@ export function test(test: TestDescriptor) {
179180 // Form the test runner command
180181 const originUrl = new URL ( context . origin ) ;
181182 const absPath = originUrl . pathname ;
182- const relPath = relative ( Deno . cwd ( ) , absPath ) ;
183+
184+ const quartoRoot = join ( quartoConfig . binPath ( ) , ".." , ".." , ".." ) ;
185+ const relPath = relative (
186+ join ( quartoRoot , "tests" ) ,
187+ absPath ,
188+ ) ;
183189 const command = Deno . build . os === "windows"
184190 ? "run-tests.psl"
185191 : "./run-test.sh" ;
You can’t perform that action at this time.
0 commit comments