aboutsummaryrefslogtreecommitdiff
path: root/minishell_test/hooks.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-27 14:46:21 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-27 14:46:21 +0100
commitc92f2be21c6be2d44cd836dd7f362e545b9a1a90 (patch)
tree53098ff3cf1367ea70d99ef09d1baa00d90ac505 /minishell_test/hooks.py
parent7081b93b8ed4f98c628400e05d22d0523f41a842 (diff)
downloadminishell_test-c92f2be21c6be2d44cd836dd7f362e545b9a1a90.tar.gz
minishell_test-c92f2be21c6be2d44cd836dd7f362e545b9a1a90.tar.bz2
minishell_test-c92f2be21c6be2d44cd836dd7f362e545b9a1a90.zip
Added make_args and check_error_messages configuration options
Diffstat (limited to 'minishell_test/hooks.py')
-rw-r--r--minishell_test/hooks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/minishell_test/hooks.py b/minishell_test/hooks.py
index dbbd975..531580a 100644
--- a/minishell_test/hooks.py
+++ b/minishell_test/hooks.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/11 16:10:20 by charles #+# #+# #
-# Updated: 2021/02/27 12:09:25 by cacharle ### ########.fr #
+# Updated: 2021/02/27 14:44:19 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -22,9 +22,8 @@ def sort_lines(output):
def error_line0(output):
- """Replace "/bin/bash: -c: line 0:" by "minishell:" and delete the second line"""
- error_message = os.environ.get("MINISHELL_TEST_DONT_CHECK_ERROR_MESSAGE")
- if error_message is not None and error_message == "yes":
+ """Replace "/bin/bash: -c: line n:" by "minishell:" and delete the second line"""
+ if not config.CHECK_ERROR_MESSAGES:
return "DISCARDED BY TEST"
lines = output.split('\n')