aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/args.py12
-rw-r--r--src/config.py7
-rw-r--r--src/prompt.py0
-rw-r--r--src/test/captured.py7
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: