From d4aae32b3d15179d2af0cd4dfec0198aafbcd717 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Mon, 20 Dec 2021 14:26:57 -0800 Subject: [PATCH] Removed Python 2 which was previously used for splunk packaging toolkit. Replaced with python3 --- .../ci/detection_testing_batch/detection_testing_execution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py b/bin/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py index c81c4cb86b..ad77b8b5a3 100644 --- a/bin/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py +++ b/bin/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py @@ -194,13 +194,13 @@ def generate_escu_app(persist_security_content: bool = False) -> str: print("Error downloading the Splunk Packaging Toolkit: [%s].\n\tQuitting..." % (str(e)), file=sys.stderr) sys.exit(1) - print(os.getcwd()) + commands = ["rm -rf slim_packaging/slim_latest", "mkdir slim_packaging/slim_latest", "cd slim_packaging", "tar -zxf ../splunk-packaging-toolkit-latest.tar.gz -C slim_latest --strip-components=1", "cd slim_latest", - "virtualenv --python=/usr/bin/python2.7 --clear .venv", + "python3 -m venv .venv", ". ./.venv/bin/activate", "python -m pip install --upgrade pip", "python -m pip install wheel",