Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integtest/3ru_1df_multirun_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

# The tests themselves

def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/3ru_3df_multirun_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/example_system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def host_is_at_ehn1(hostname):
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/fake_data_producer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

# The tests themselves

def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/long_window_readout_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
10 changes: 5 additions & 5 deletions integtest/minimal_system_quick_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@
confgen_arguments = {"MinimalSystem": conf_dict}
# The commands to run in nanorc, as a list
nanorc_command_list = (
"boot conf start --run-number 101 wait 1 enable-triggers wait ".split()
+ [str(run_duration)]
+ "disable-triggers wait 2 drain-dataflow wait 2 stop-trigger-sources stop scrap terminate".split()
)
"boot conf start --run-number 101 wait 1 enable-triggers wait ".split()
+ [str(run_duration)]
+ "disable-triggers wait 2 drain-dataflow wait 2 stop-trigger-sources stop scrap terminate".split()
)

# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/readout_type_scan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@

# The tests themselves

def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
Empty file modified integtest/sample_ehn1_multihost_test.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion integtest/small_footprint_quick_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/tpg_state_collection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/tpreplay_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _cleanup_tmpdir():

### Tests
# Run control
def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/tpstream_writing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
# The tests themselves


def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
2 changes: 1 addition & 1 deletion integtest/trigger_bitwords_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@

### Tests
# Run control
def test_nanorc_success(run_nanorc, capsys):
def test_nanorc_success(run_nanorc):
# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
Expand Down
13 changes: 7 additions & 6 deletions scripts/dunedaq_integtest_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Options:
--concise-output : suppresses run control and DAQApp messages in order to focus on test results
--tmpdir : specifies a root directory to use for test output, e.g. a directory instead of '/tmp'
--list-only : list the tests that match the requested patterns without running them
--skip-resource-checks: Skips the CPU/Memory/Disk resource checks, forcing tests to run
--pytest-options : string with one or more command-line options to pass to Pytest (verbatim)
"""
}

Expand All @@ -43,7 +43,7 @@ CaptureOutput() {
tee -a $1
}

GETOPT_TEMP=`getopt -o hr:k:x:n:N: --long help,stop-on-failure,concise-output,include:,exclude:,tmpdir:,list-only,skip-resource-checks -- "$@"`
GETOPT_TEMP=`getopt -o hr:k:x:n:N: --long help,stop-on-failure,concise-output,include:,exclude:,tmpdir:,list-only,pytest-options: -- "$@"`
if [ $? -ne 0 ]; then
exit 1
fi
Expand Down Expand Up @@ -118,17 +118,18 @@ while true; do
shift
;;
--concise-output)
PYTEST_COMMAND="`echo ${PYTEST_COMMAND} | sed 's/ -s//'`" # remove the -s option to turn off messages from DAQ processes
# replace the pytest "-s" option with "-rs" to suppress all output except pytest.skip messages
PYTEST_COMMAND="`echo ${PYTEST_COMMAND} | sed 's/ -s/ -rs/'`"
shift
;;
--tmpdir)
tmpdir_root=$2
export PYTEST_DEBUG_TEMPROOT=${tmpdir_root}
shift 2
;;
--skip-resource-checks)
PYTEST_COMMAND="${PYTEST_COMMAND} --skip-resource-checks" # Add the --skip-resource-checks pytest option
shift
--pytest-options)
PYTEST_COMMAND="${PYTEST_COMMAND} $2" # Add the specified options to the pytest command
shift 2
;;
--list-only)
only_list_tests="yes"
Expand Down