diff options
Diffstat (limited to 'minishell_test/suites')
| -rw-r--r-- | minishell_test/suites/flow.py | 4 | ||||
| -rw-r--r-- | minishell_test/suites/path.py | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/minishell_test/suites/flow.py b/minishell_test/suites/flow.py index 90aef7f..ed5fd03 100644 --- a/minishell_test/suites/flow.py +++ b/minishell_test/suites/flow.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:52 by charles #+# #+# # -# Updated: 2021/02/05 15:11:21 by charles ### ########.fr # +# Updated: 2021/02/05 17:40:00 by charles ### ########.fr # # # # ############################################################################ # @@ -20,6 +20,7 @@ from minishell_test.hooks import ( error_eof_to_expected_token ) + @suite() def suite_end(test): """ `;` tests """ @@ -58,6 +59,7 @@ def suite_end(test): test("ls " + 40 * " ; ls" + ";", setup="touch a b c") test("ls " + 80 * " ; ls" + ";", setup="touch a b c") + @suite() def suite_pipe(test): """ `|` tests """ diff --git a/minishell_test/suites/path.py b/minishell_test/suites/path.py index b350168..fa67d9a 100644 --- a/minishell_test/suites/path.py +++ b/minishell_test/suites/path.py @@ -6,7 +6,7 @@ # By: charles <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/09 15:12:58 by charles #+# #+# # -# Updated: 2021/02/05 14:50:19 by charles ### ########.fr # +# Updated: 2021/02/05 17:47:32 by charles ### ########.fr # # # # ############################################################################ # @@ -22,9 +22,9 @@ def suite_path(test): if whoami_path is None: print("Couldn't find `whoami` in your PATH: Skipping suite") return - mode_fmt = ("mkdir path && cp " - + whoami_path - + " ./path/a && chmod {} ./path/a") + mode_fmt = ("mkdir path && cp " + + whoami_path + + " ./path/a && chmod {} ./path/a") test("a", setup=mode_fmt.format("000"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("001"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("002"), exports={"PATH": "path"}) |
