Skip to content
Open
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
4 changes: 3 additions & 1 deletion integtest/disabled_output_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,16 @@


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_nanorc0\].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
5 changes: 3 additions & 2 deletions integtest/hdf5_compression_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
import os
import re
import copy
import urllib.request

import integrationtest.data_file_checks as data_file_checks
Expand Down Expand Up @@ -254,14 +253,16 @@ def test_nanorc_success(run_nanorc):
resval_summary_string = resval.get_insufficient_resources_summary()
pytest.skip(f"{resval_summary_string}")

# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
4 changes: 3 additions & 1 deletion integtest/insufficient_disk_space_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,16 @@ def test_nanorc_success(run_nanorc):
resval_summary_string = resval.get_insufficient_resources_summary()
pytest.skip(f"{resval_summary_string}")

# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
4 changes: 3 additions & 1 deletion integtest/large_trigger_record_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,16 @@ def test_nanorc_success(run_nanorc):
resval_summary_string = resval.get_insufficient_resources_summary()
pytest.skip(f"{resval_summary_string}")

# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)\-run_nanorc0].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
5 changes: 3 additions & 2 deletions integtest/max_file_size_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
import os
import re
import copy
import urllib.request

import integrationtest.data_file_checks as data_file_checks
Expand Down Expand Up @@ -230,14 +229,16 @@ def test_nanorc_success(run_nanorc):
resval_summary_string = resval.get_insufficient_resources_summary()
pytest.skip(f"{resval_summary_string}")

# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
5 changes: 3 additions & 2 deletions integtest/multiple_data_writers_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
import os
import re
import copy
import urllib.request

import integrationtest.data_file_checks as data_file_checks
Expand Down Expand Up @@ -151,14 +150,16 @@ def test_nanorc_success(run_nanorc):
resval_summary_string = resval.get_insufficient_resources_summary()
pytest.skip(f"{resval_summary_string}")

# print the name of the current test
current_test = os.environ.get("PYTEST_CURRENT_TEST")
match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test)
match_obj = re.search(r".*\[(.+)-run_.*rc.*\d].*", current_test)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
12 changes: 12 additions & 0 deletions integtest/offline_prod_run_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pytest
import os
import re
import urllib.request

import integrationtest.data_file_checks as data_file_checks
Expand Down Expand Up @@ -97,6 +99,16 @@


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)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down
11 changes: 10 additions & 1 deletion integtest/trmonrequestor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pytest
import os
import re
import copy

import integrationtest.data_file_checks as data_file_checks
import integrationtest.log_file_checks as log_file_checks
Expand Down Expand Up @@ -103,6 +102,16 @@ def make_run_command_list(runnum):

# The tests themselves
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)
if match_obj:
current_test = match_obj.group(1)
banner_line = re.sub(".", "=", current_test)
print(banner_line)
print(current_test)
print(banner_line)

# Check that nanorc completed correctly
assert run_nanorc.completed_process.returncode == 0

Expand Down