Skip to content

Commit 2bd222e

Browse files
authored
tests: Aarch64 executable tests (#772)
1 parent df84102 commit 2bd222e

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

tests/conftest.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from gprofiler.profiler_state import ProfilerState
3636
from gprofiler.profilers.java import AsyncProfiledProcess, JattachJcmdRunner
3737
from gprofiler.state import init_state
38-
from tests import CONTAINERS_DIRECTORY, PARENT, PHPSPY_DURATION
38+
from tests import CONTAINERS_DIRECTORY, PHPSPY_DURATION
3939
from tests.utils import (
4040
_application_docker_container,
4141
_application_process,
@@ -194,18 +194,8 @@ def application_executable(runtime: str) -> str:
194194
@fixture
195195
def gprofiler_exe(request: FixtureRequest, tmp_path: Path) -> Path:
196196
precompiled = request.config.getoption("--executable")
197-
if precompiled is not None:
198-
return Path(precompiled)
199-
200-
with chdir(PARENT):
201-
pyi_popen = subprocess.Popen(
202-
["pyinstaller", "--distpath", str(tmp_path), "pyinstaller.spec"],
203-
)
204-
pyi_popen.wait()
205-
206-
staticx_popen = subprocess.Popen(["staticx", tmp_path / "gprofiler", tmp_path / "gprofiler"])
207-
staticx_popen.wait()
208-
return tmp_path / "gprofiler"
197+
assert precompiled is not None
198+
return Path(precompiled)
209199

210200

211201
@fixture

0 commit comments

Comments
 (0)