diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-11 22:30:12 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-11 22:30:12 +0100 |
| commit | 6bfef39c5fd5c2bc9bf3e0c7627931050fa5d02c (patch) | |
| tree | fa02d27e427db2bf212f6c131b3823fef1c56b17 /src | |
| parent | 4a9f5b636ef63532569676c416caa149731e930b (diff) | |
| download | minishell_test-6bfef39c5fd5c2bc9bf3e0c7627931050fa5d02c.tar.gz minishell_test-6bfef39c5fd5c2bc9bf3e0c7627931050fa5d02c.tar.bz2 minishell_test-6bfef39c5fd5c2bc9bf3e0c7627931050fa5d02c.zip | |
Removing everything prompt related
Diffstat (limited to 'src')
| -rw-r--r-- | src/args.py | 12 | ||||
| -rw-r--r-- | src/config.py | 7 | ||||
| -rw-r--r-- | src/prompt.py | 0 | ||||
| -rw-r--r-- | src/test/captured.py | 7 |
4 files changed, 3 insertions, 23 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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 # # # # ############################################################################ # @@ -38,16 +38,6 @@ def parse_args(): 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 <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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 --- a/src/prompt.py +++ /dev/null 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 <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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: |
