Skip to content

Instantly share code, notes, and snippets.

def run_tests_in_venv(test="", socket_dir=""):
"""Runs tests in the virtual environment set by venv_dir.
Arguments:
test: Name of the test to run (default: run all tests)
socket_dir: Use running VPP's socket files
(default: run a new VPP instance )
"""
script = os.path.join(test_dir, "scripts", "run.sh")
p = Popen(
# Parses all run.py cmdline arguments
import argparse
import os
import time
## Config Defaults
default_rnd_seed = time.time()
default_test_run_timeout = 600
default_retries = 0