From 6bfef39c5fd5c2bc9bf3e0c7627931050fa5d02c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 11 Jan 2021 22:30:12 +0100 Subject: Removing everything prompt related --- src/args.py | 12 +----------- src/config.py | 7 +------ src/prompt.py | 0 src/test/captured.py | 7 +------ 4 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 src/prompt.py (limited to 'src') diff --git a/src/args.py b/src/args.py index d8bd405..b7fcca6 100644 --- a/src/args.py +++ b/src/args.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:32 by charles #+# #+# # -# Updated: 2020/10/24 13:38:47 by charles ### ########.fr # +# Updated: 2021/01/11 22:20:16 by charles ### ########.fr # # # # ############################################################################ # @@ -37,16 +37,6 @@ def parse_args(): "-k", "--check-leaks", action="store_true", help="Run valgrind on tests (disable usual comparison with bash)" ) - parser.add_argument( - "-p", "--prompt", - help=textwrap.dedent("""\ - The format of your prompt, the available format are: - - abs_path: absolute path to the current directory - - base_path: last directory of the path to the current directory - - username: current user - You can also the the environment variable MINISHELL_TEST_PROMPT. - """) - ) parser.add_argument( "-r", "--range", nargs=2, type=int, metavar=("BEGIN", "END"), help="Range of test index to run (imply --show-index)" diff --git a/src/config.py b/src/config.py index 94117e8..03893d1 100644 --- a/src/config.py +++ b/src/config.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:19 by charles #+# #+# # -# Updated: 2021/01/10 15:25:49 by cacharle ### ########.fr # +# Updated: 2021/01/11 22:19:59 by charles ### ########.fr # # # # ############################################################################ # @@ -22,11 +22,6 @@ import distutils.spawn # can be changed with `export MINISHELL_TEST_BONUS=yes` in your shell rc file. BONUS = False -# Your prompt (string that will be ignored) -# ./run -h to show the available format -# Create a new issue if your type of prompt isn't supported -PROMPT = None - # minishell dir path MINISHELL_DIR = "../minishell" diff --git a/src/prompt.py b/src/prompt.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/test/captured.py b/src/test/captured.py index a3932fd..4401ddb 100644 --- a/src/test/captured.py +++ b/src/test/captured.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 12:16:25 by charles #+# #+# # -# Updated: 2020/10/15 08:49:01 by cacharle ### ########.fr # +# Updated: 2021/01/11 22:20:29 by charles ### ########.fr # # # # ############################################################################ # @@ -21,13 +21,8 @@ class Captured: files_content: content of the files altered by the command is_timeout: the command has timed out """ - # if config.PROMPT_OBJECT is not None: - # output = output.replace(config.PROMPT_OBJECT + "\n", "") - # output = output.replace(config.PROMPT_OBJECT, "") lines = output.split('\n') for i, l in enumerate(lines): - # if l.find(config.PROMPT_OBJECT) == 0: - # l.replace(config.PROMPT_OBJECT, "") if l.find(config.REFERENCE_ERROR_BEGIN) == 0: lines[i] = l.replace(config.REFERENCE_ERROR_BEGIN, config.MINISHELL_ERROR_BEGIN, 1) elif l.find(config.REFERENCE_PATH + ": ") == 0: -- cgit