Skip to content

Commit e605dbb

Browse files
committed
Pkgtest: fix default numbers for testfiles.
1 parent f42ee8e commit e605dbb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

com.oracle.truffle.r.test.packages/pkgtest/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,15 @@ class TestFileStatus:
317317
def __init__(self, status, abspath):
318318
self.status = status
319319
self.abspath = abspath
320-
self.report = 0, 1, 0
320+
if status == "OK":
321+
# At this point, status == "OK" means that we had no '.fail' output file and we will investigate the single
322+
# test cases. So, initially we claim the test was skipped because if GnuR failed on the test, we state that
323+
# we skipped it.
324+
self.report = 0, 1, 0
325+
elif status == "FAILED":
326+
self.report = 0, 0, 1
327+
else:
328+
raise ValueError('Invalid test file status: %s (allowed: "OK", "FAILED")' % status)
321329

322330

323331
class TestStatus:

0 commit comments

Comments
 (0)