Skip to content

Commit 029bbfb

Browse files
st0ffregenHennich
andauthored
add expressive exception in _do_exploit_run (#51)
* add expressive exception in _do_exploit_run * Update pyproject.toml to bump version to 0.10.1 --------- Co-authored-by: Hennich <[email protected]>
1 parent d9697fd commit 029bbfb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

enochecker_test/tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,11 @@ def _do_exploit_run(
634634
checker_url,
635635
)
636636
print(found_flag)
637-
return found_flag == flag, None
637+
if found_flag == flag:
638+
return True, None
639+
640+
return False, Exception(f"Found flag is incorrect. Expected: {flag}. Found: {found_flag}")
641+
638642
except Exception as e:
639643
return False, e
640644

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "enochecker_test"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
description = "Library to help testing checker scripts based on enochecker"
55
authors = ["ldruschk <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)