Skip to content

Commit

Permalink
Make SQLancer check not "always green"
Browse files Browse the repository at this point in the history
  • Loading branch information
qoega committed Jun 23, 2023
1 parent 95917ad commit 7e3eaad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ci/sqlancer_check.py
Expand Up @@ -153,10 +153,10 @@ def main():
test_results = [] # type: TestResults
# Try to get status message saved by the SQLancer
try:
# with open(
# os.path.join(workspace_path, "status.txt"), "r", encoding="utf-8"
# ) as status_f:
# status = status_f.readline().rstrip("\n")
with open(
os.path.join(workspace_path, "status.txt"), "r", encoding="utf-8"
) as status_f:
status = status_f.readline().rstrip("\n")
if os.path.exists(os.path.join(workspace_path, "server_crashed.log")):
test_results.append(TestResult("Server crashed", "FAIL"))
with open(
Expand All @@ -171,7 +171,7 @@ def main():
) as desc_f:
description = desc_f.readline().rstrip("\n")
except:
# status = "failure"
status = "failure"
description = "Task failed: $?=" + str(retcode)

description = format_description(description)
Expand Down

0 comments on commit 7e3eaad

Please sign in to comment.