From dde69f1fac4433d52bbeb00c873ca279bc718473 Mon Sep 17 00:00:00 2001 From: Nuno Fachada Date: Mon, 27 Mar 2023 00:32:45 +0100 Subject: [PATCH] Small fixes in run plugin --- egrader/plugins/repo.py | 4 +--- examples/rules_template.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/egrader/plugins/repo.py b/egrader/plugins/repo.py index ac2f9ba..a1fa376 100644 --- a/egrader/plugins/repo.py +++ b/egrader/plugins/repo.py @@ -87,7 +87,7 @@ def assess_run_command( input_stream: str | None = None, expect_exit_code: int = 0, expect_output: str | None = None, - timeout: float = 0.5, + timeout: float = 2.5, ) -> float: """Run a command and check for exit code and/or expected output.""" try: @@ -102,8 +102,6 @@ def assess_run_command( except (TimeoutExpired, FileNotFoundError): return 0 - print(r) - if expect_exit_code != r.returncode: return 0 diff --git a/examples/rules_template.yml b/examples/rules_template.yml index d9ed266..d00b817 100644 --- a/examples/rules_template.yml +++ b/examples/rules_template.yml @@ -36,7 +36,7 @@ weight: 0.2 params: command: python -c "x=input();print(x)" - input: this is the expected string + input_stream: this is the expected string expect_output: this is the expected string - repo: LP1Semana01 weight: 10