Skip to content

Commit cdad1c3

Browse files
committed
fix: bug
1 parent b6acbcf commit cdad1c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bindings/utils/testBindingBinary.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const expectedFileName = "testBindingBinary";
1717

1818
export async function testBindingBinary(
1919
bindingBinaryPath: string,
20-
extBackendsPath: string | undefined = path.dirname(bindingBinaryPath),
20+
extBackendsPath: string | undefined,
2121
gpu: BuildGpu,
2222
testTimeout: number = 1000 * 60 * 5,
2323
pipeOutputOnNode: boolean = false
@@ -292,7 +292,7 @@ if (process.env.TEST_BINDING_CP === "true" && (process.parentPort != null || pro
292292
let loadedGpu = binding.getGpuType();
293293
if (loadedGpu == null || (loadedGpu === false && message.gpu !== false)) {
294294
const backendsPath = path.dirname(path.resolve(message.bindingBinaryPath));
295-
const fallbackBackendsDir = path.join(message.extBackendsPath ?? backendsPath, "fallback");
295+
const fallbackBackendsDir = path.join(path.resolve(message.extBackendsPath ?? backendsPath), "fallback");
296296

297297
binding.loadBackends(backendsPath);
298298

@@ -340,12 +340,12 @@ if (process.env.TEST_BINDING_CP === "true" && (process.parentPort != null || pro
340340
type ParentToChildMessage = {
341341
type: "start",
342342
bindingBinaryPath: string,
343-
extBackendsPath: string,
343+
extBackendsPath?: string,
344344
gpu: BuildGpu
345345
} | {
346346
type: "test",
347347
bindingBinaryPath: string,
348-
extBackendsPath: string,
348+
extBackendsPath?: string,
349349
gpu: BuildGpu
350350
} | {
351351
type: "exit"

0 commit comments

Comments
 (0)