diff options
| -rw-r--r-- | src/args.py | 4 | ||||
| -rw-r--r-- | src/hooks.py | 4 | ||||
| -rw-r--r-- | src/suites/flow.py | 6 | ||||
| -rw-r--r-- | src/suites/misc.py | 3 |
4 files changed, 9 insertions, 8 deletions
diff --git a/src/args.py b/src/args.py index 289083b..d8bd405 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/10 14:26:20 by cacharle ### ########.fr # +# Updated: 2020/10/24 13:38:47 by charles ### ########.fr # # # # ############################################################################ # @@ -18,7 +18,7 @@ def parse_args(): """Parse command line arguments""" parser = argparse.ArgumentParser( - description=textwrap.dedent("""\ + description=textwrap.dedent(r""" ___ ____ _ _ _ _ _ _ | \/ (_) (_) | | | | | | | | | | . . |_ _ __ _ ___| |__ ___| | | | |_ ___ ___| |_ diff --git a/src/hooks.py b/src/hooks.py index f1492d7..9e80dd0 100644 --- a/src/hooks.py +++ b/src/hooks.py @@ -6,7 +6,7 @@ # By: charles <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 16:10:20 by charles #+# #+# # -# Updated: 2020/10/09 20:27:30 by charles ### ########.fr # +# Updated: 2020/10/24 13:16:59 by charles ### ########.fr # # # # ############################################################################ # @@ -47,7 +47,7 @@ def export_singleton(output): prefix = "export " if ("--posix" in config.REFERENCE_ARGS) else "declare -x " return sort_lines( '\n'.join([line for line in output.split('\n') - if re.match("^{}.+=\".*\"$".format(prefix), line) is not None]) + if re.match("^{}[a-zA-Z]+$".format(prefix), line) is None]) ) diff --git a/src/suites/flow.py b/src/suites/flow.py index ac4aec0..8ff66cb 100644 --- a/src/suites/flow.py +++ b/src/suites/flow.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:52 by charles #+# #+# # -# Updated: 2020/10/09 20:14:40 by charles ### ########.fr # +# Updated: 2020/10/24 13:40:12 by charles ### ########.fr # # # # ############################################################################ # @@ -206,9 +206,9 @@ def suite_parenthesis(test): test("(cat /etc/shells) | (cat -e) | (cat -e) | (cat -e)") test("(cat /etc/shells) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e) | (cat -e)") test("(cat /etc/shells | (cat -e) | (cat -e) | (cat -e)", - hook=[error_line0, error_eof_to_expected_token], hook_status=platform_status(2, 1)) + hook=[error_line0, error_eof_to_expected_token], hook_status=platform_status(2, 1)) test("(cat /etc/shells) | (cat -e) | (cat -e | (cat -e)", - hook=[error_line0, error_eof_to_expected_token], hook_status=platform_status(2, 1)) + hook=[error_line0, error_eof_to_expected_token], hook_status=platform_status(2, 1)) @suite() diff --git a/src/suites/misc.py b/src/suites/misc.py index 020069a..004ebf1 100644 --- a/src/suites/misc.py +++ b/src/suites/misc.py @@ -6,12 +6,13 @@ # By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/10/10 13:06:19 by cacharle #+# #+# # -# Updated: 2020/10/10 13:48:31 by cacharle ### ########.fr # +# Updated: 2020/10/24 13:39:48 by charles ### ########.fr # # # # ############################################################################ # from suite import suite + @suite() def suite_shlvl(test): """ test for the SHLVL variable """ |
