From 9132220296cdf6ab29c570fe0534649cfcc1cd8d Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 15 Jul 2020 13:26:01 +0200 Subject: Added error message comparison and basic timeout --- config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config.py') diff --git a/config.py b/config.py index c1f9ba9..632591a 100644 --- a/config.py +++ b/config.py @@ -21,7 +21,7 @@ SANDBOX_PATH = "sandbox" EXECUTABLES_PATH = "./bin" # commands available in test" -AVAILABLE_COMMANDS = ["cat", "touch", "env", "ls"] +AVAILABLE_COMMANDS = ["cat", "touch", "env", "ls", "grep"] # $PATH environment variable passed to the shell PATH_VARIABLE = os.path.abspath(EXECUTABLES_PATH) @@ -51,3 +51,6 @@ MINISHELL_PATH = os.path.abspath( # 0, 1, 2 VERBOSE_LEVEL = 1 + +MINISHELL_ERROR_BEGIN = os.path.basename(MINISHELL_PATH) + ": " +REFERENCE_ERROR_BEGIN = REFERENCE_PATH + ": line 0: " -- cgit