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/test/captured.py | |
| 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/test/captured.py')
| -rw-r--r-- | src/test/captured.py | 7 |
1 files changed, 1 insertions, 6 deletions
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: |
