Skip to content

Commit 87532dd

Browse files
author
Kurt Biery
committed
Removed the stale and unneeded checking for tests at EHN1 in the integtest.
1 parent 5a50fb5 commit 87532dd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

integtest/crt_reader_test.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@
143143
)
144144
)
145145

146-
def host_is_at_ehn1(hostname):
147-
return re.match(r"^(np02|np04)-srv-\d{3}$", hostname) or re.match(r"^(np02|np04)-srv-\d{3}.cern.ch$", hostname)
148-
149146
confgen_arguments = {
150147
"Local CRT Bern 1x1 Conf": onebyone_local_crt_bern_conf,
151148
"Local CRT Grenoble 1x1 Conf": onebyone_local_crt_grenoble_conf,
@@ -169,22 +166,10 @@ def test_nanorc_success(run_nanorc):
169166
print(current_test)
170167
print(banner_line)
171168

172-
if not host_is_at_ehn1(hostname) and "EHN1" in current_test:
173-
pytest.skip(
174-
f"This computer ({hostname}) is not at EHN1, not running EHN1 sessions"
175-
)
176-
177169
# Check that nanorc completed correctly
178170
assert run_nanorc.completed_process.returncode == 0
179171

180172
def test_log_files(run_nanorc):
181-
current_test = os.environ.get("PYTEST_CURRENT_TEST")
182-
183-
if not host_is_at_ehn1(hostname) and "EHN1" in current_test:
184-
pytest.skip(
185-
f"This computer ({hostname}) is not at EHN1, not running EHN1 sessions"
186-
)
187-
188173
if check_for_logfile_errors:
189174
# Check that there are no warnings or errors in the log files
190175
assert log_file_checks.logs_are_error_free(

0 commit comments

Comments
 (0)