Skip to content

Commit d6a83b4

Browse files
committed
Adds walltime exceeded test case
Adds a test case to check for walltime exceeded errors in job output. Creates a test fixture containing log content indicative of a walltime exceeded error.
1 parent b9d5af4 commit d6a83b4

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

arc/job/adapter_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ def setUpClass(cls):
208208
server='server3',
209209
testing=True,
210210
)
211+
os.makedirs(cls.job_5.local_path, exist_ok=True)
212+
fixture_path = os.path.join(ARC_PATH, 'arc', 'testing', 'trsh', 'wall_exceeded.txt')
213+
with open(fixture_path, 'r') as f:
214+
log_content = f.read()
215+
with open(os.path.join(cls.job_5.local_path, 'out.txt'), 'w') as f:
216+
f.write(log_content)
211217
cls.job_6 = GaussianAdapter(execution_type='queue',
212218
job_name='spc1',
213219
job_type='opt',

arc/testing/trsh/wall_exceeded.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=>> PBS: job killed: walltime 86415 exceeded limit 86400
2+
Error: software termination
3+
rax fffffffffffffffc, rbx 00007ffc0d4f90d0, rcx ffffffffffffffff
4+
rdx 0000000000000000, rsp 00007ffc0d4f9098, rbp 0000000000000001
5+
rsi 00007ffc0d4f90d0, rdi 0000000000038f1b, r8 00002b7af22a5700
6+
r9 0000000000000000, r10 0000000000000000, r11 0000000000000246
7+
r12 00007ffc0d4f90f0, r13 000000000000008f, r14 0000000000000000
8+
r15 00007ffc0d4fff40
9+
Error: software termination
10+
rax 0000000000024fa8, rbx 00002ae812e9f2c0, rcx 0000000000035498
11+
rdx 00002ae8c4888bd0, rsp 00007ffde70fb680, rbp 00007ffde70fbf70
12+
rsi 00002ae8c48be068, rdi 00002ae8c48f3508, r8 00002ae8c49289b0
13+
r9 0000000000006a93, r10 0000000000006a95, r11 00002ae812ed4768
14+
r12 00002ae812f66508, r13 00002ae812f9b9b0, r14 0000000000006a92
15+
r15 00002ae81311f478
16+
--- traceback not available
17+
--- traceback not available

0 commit comments

Comments
 (0)