diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-11 15:38:53 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-11 15:38:53 +0200 |
| commit | a36a27b8ca85adf57b2a9926a53e74e3a3863d3d (patch) | |
| tree | 0cef6594264f1ebe2252f975514849c9a1262922 /src/test/captured.py | |
| parent | fb0a727a9885b80b855f470ae6d5c1bfac614439 (diff) | |
| download | minishell_test-a36a27b8ca85adf57b2a9926a53e74e3a3863d3d.tar.gz minishell_test-a36a27b8ca85adf57b2a9926a53e74e3a3863d3d.tar.bz2 minishell_test-a36a27b8ca85adf57b2a9926a53e74e3a3863d3d.zip | |
Added leak verbose
Diffstat (limited to 'src/test/captured.py')
| -rw-r--r-- | src/test/captured.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/captured.py b/src/test/captured.py index 4a9966d..15ef3f7 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/07 18:25:05 by cacharle ### ########.fr # +# Updated: 2020/10/11 08:44:36 by cacharle ### ########.fr # # # # ############################################################################ # @@ -21,8 +21,13 @@ 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: |
