Skip to content

Commit 9587def

Browse files
committed
evm test to be skipped in docker
1 parent f4a2c20 commit 9587def

File tree

5 files changed

+6
-30
lines changed

5 files changed

+6
-30
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM python:3.8-slim AS builder
33
LABEL maintainer="Kevin Foo <[email protected]>"
44

55
ENV DEBIAN_FRONTEND=noninteractive
6+
ENV AM_I_IN_A_DOCKER_CONTAINER Yes
67

78
RUN apt-get update \
89
&& apt-get -y upgrade \

qiling/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def filter(self, ft):
609609
def uc(self) -> Uc:
610610
""" Raw uc instance.
611611
612-
Type: Uc
612+
Type: Ucgit
613613
"""
614614
return self._uc
615615

qiling/os/posix/syscall/unistd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def _sched_cb_exit(cur_thread):
5353
ql.os.exit_code = code
5454
ql.os.stop()
5555

56+
5657
def ql_syscall_alarm(ql: Qiling, seconds: int):
5758
return 0
5859

tests/temptest_execve.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/test_evm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
sys.path.append("..")
66
from qiling import Qiling
77

8-
if sys.version_info.major == 3 and sys.version_info.minor == 9:
8+
SECRET_KEY = os.environ.get('AM_I_IN_A_DOCKER_CONTAINER', False)
9+
10+
if SECRET_KEY:
911
sys.exit(0)
1012

1113
if platform.system() == "Darwin" and platform.machine() == "arm64":

0 commit comments

Comments
 (0)