This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |