aboutsummaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-07-15 13:26:01 +0200
committerCharles <sircharlesaze@gmail.com>2020-07-15 13:26:01 +0200
commit9132220296cdf6ab29c570fe0534649cfcc1cd8d (patch)
treec65844a14b1abafa5a9e08d0d22a9ea52f25f994 /config.py
parentcc041d1901daa8be9197a59d963466fdc7e2b404 (diff)
downloadminishell_test-9132220296cdf6ab29c570fe0534649cfcc1cd8d.tar.gz
minishell_test-9132220296cdf6ab29c570fe0534649cfcc1cd8d.tar.bz2
minishell_test-9132220296cdf6ab29c570fe0534649cfcc1cd8d.zip
Added error message comparison and basic timeout
Diffstat (limited to 'config.py')
-rw-r--r--config.py5
1 files changed, 4 insertions, 1 deletions
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: "