mirror of https://github.com/pyodide/pyodide.git
TST Move run_docker test outside of pyodide-build (#4463)
It is weird that test_run_docker is inside pyodide-build. This PR moves the run_docker test file to tools directory. Maybe it is not the best place to put this test file, but it is at least better than pyodide-build.
This commit is contained in:
parent
eb6e03e56c
commit
d1628de4ff
|
@ -1,13 +1,7 @@
|
||||||
import os
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
if "PYODIDE_ROOT" in os.environ:
|
PYODIDE_ROOT = Path(__file__).parent.parent.parent
|
||||||
PYODIDE_ROOT = Path(os.environ["PYODIDE_ROOT"])
|
|
||||||
else:
|
|
||||||
from pyodide_build import build_env
|
|
||||||
|
|
||||||
PYODIDE_ROOT = build_env.search_pyodide_root(Path.cwd())
|
|
||||||
|
|
||||||
|
|
||||||
def test_run_docker_script():
|
def test_run_docker_script():
|
Loading…
Reference in New Issue