diff --git a/test/e2e/tests/commons/sinspqa/sinsp.py b/test/e2e/tests/commons/sinspqa/sinsp.py index 808426580e..ba8f482a00 100644 --- a/test/e2e/tests/commons/sinspqa/sinsp.py +++ b/test/e2e/tests/commons/sinspqa/sinsp.py @@ -309,7 +309,6 @@ def container_spec(image: str = 'sinsp-example:latest', args: list = [], env: di def process_spec(path: str, args: list, env: dict) -> dict: - args.extend(['-p', os.environ.get('CONTAINER_PLUGIN')]) return { 'path': path, 'args': args, @@ -331,11 +330,14 @@ def generate_specs(image: str = 'sinsp-example:latest', Returns: A dictionary describing how to run the sinsp-example container """ + args.extend(['-p', os.environ.get('CONTAINER_PLUGIN')]) + specs = [] bpf_args = args.copy() bpf_args.extend([ '-b', os.environ.get('BPF_PROBE'), ]) + modern_bpf_args = args.copy() modern_bpf_args.append('-m')