Skip to content

Commit

Permalink
fix(test): Make the malware detection detect Podman containers (#4012)
Browse files Browse the repository at this point in the history
Signed-off-by: mhorky <[email protected]>
(cherry picked from commit 8a566fe)
  • Loading branch information
m-horky authored and xiangce committed Feb 8, 2024
1 parent 8d37ddb commit cb90c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/tests/client/apps/test_malware_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
IS_RHEL6 = sys.version_info < (2, 7)
SKIP_IF_RHEL6_REASON = "The malware-detection client isn't supported on RHEL6 / python 2.6"
# Is the best way to determine if we are running in a container?
IS_CONTAINER = os.path.exists("/.dockerenv") or '1' not in call('pidof init systemd').strip().split()
IS_CONTAINER = os.path.exists("/.dockerenv") or os.path.exists("/run/.containerenv") or '1' not in call('pidof init systemd').strip().split()
SKIP_IF_CONTAINER_REASON = "This test uses running process that may not exist when run in a container"


Expand Down

0 comments on commit cb90c2d

Please sign in to comment.