From 4d45da48677eb8ce261d7f6ce0d6504a8771d25e Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Thu, 23 Jun 2022 15:53:29 +0200 Subject: [PATCH] Added a post message, still nowhere near clean enough --- modules/spidey_test.py | 2 +- modules/test_interface.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/spidey_test.py b/modules/spidey_test.py index 1003efd..53212ea 100644 --- a/modules/spidey_test.py +++ b/modules/spidey_test.py @@ -52,7 +52,7 @@ class SpideyTest(test_template.TestTemplate): if lines > 1: self.is_infected = True - if self.is_infected: + if self.is_infected: # TODO: set a status here, explaining and why the test failed, the scary part will be handled by the main program print("\n!!! WARNING !!!\n" "Unless you've installed a plugin you really trust, chances are your discord install " "is corrupted. We suggest uninstalling discord and deleting all its files before reinstalling.\n" diff --git a/modules/test_interface.py b/modules/test_interface.py index 1be178c..4b1a9f9 100644 --- a/modules/test_interface.py +++ b/modules/test_interface.py @@ -122,7 +122,7 @@ class TestRunner: if self.args.launch: while True: if POST_RUN_ALLOWED: - print("Running post test runner") + print("Running post test runner...") return 0 time.sleep(0.5) return 0 @@ -199,5 +199,6 @@ def run_check(args, agnpath): while tr.get_exit_code() == -1: print(tr.get_status()) time.sleep(0.5) - + print("The test sequence is now finished") + print(tr.get_status()) sys.exit(tr.get_exit_code())