From 9abbdfa75863c62b52c866d3ade13a5226f94fe9 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Tue, 25 Jun 2024 10:02:39 +0100 Subject: [PATCH] rename wasm test dir to tests --- tests/emscripten_runner.js | 6 +++--- wasm-preview/worker.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/emscripten_runner.js b/tests/emscripten_runner.js index c3c53834e..c29760b74 100644 --- a/tests/emscripten_runner.js +++ b/tests/emscripten_runner.js @@ -83,9 +83,9 @@ async function main() { const pyodide = await loadPyodide(); const FS = pyodide.FS; setupStreams(FS, pyodide._module.TTY); - FS.mkdir('/test_dir'); - FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/test_dir'); - FS.chdir('/test_dir'); + FS.mkdir('/tests'); + FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/tests'); + FS.chdir('/tests'); await pyodide.loadPackage(['micropip', 'pytest']); // language=python errcode = await pyodide.runPythonAsync(` diff --git a/wasm-preview/worker.js b/wasm-preview/worker.js index c6223ecbd..6a4e67391 100644 --- a/wasm-preview/worker.js +++ b/wasm-preview/worker.js @@ -95,8 +95,8 @@ async function main() { const pyodide = await loadPyodide(); const {FS} = pyodide; setupStreams(FS, pyodide._module.TTY); - FS.mkdir('/test_dir'); - FS.chdir('/test_dir'); + FS.mkdir('/tests'); + FS.chdir('/tests'); await pyodide.loadPackage(['micropip', 'pytest', 'numpy']); if (pydantic_core_version < '2.0.0') await pyodide.loadPackage(['typing-extensions']); await pyodide.runPythonAsync(python_code, {globals: pyodide.toPy({pydantic_core_version, tests_zip})});