diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 17:54:02 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 18:36:30 +0200 |
| commit | 12f385695e13bbb0dd65062fa371bd914acd7862 (patch) | |
| tree | 0d039e9308756049d3a3dca232079ac3c75726a4 /src/suites/path.py | |
| parent | 572c2e7218a21a6fa711d9b654a8f74163a77e69 (diff) | |
| download | minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.tar.gz minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.tar.bz2 minishell_test-12f385695e13bbb0dd65062fa371bd914acd7862.zip | |
Added more parenthesis, pipe, quote tests
Diffstat (limited to 'src/suites/path.py')
| -rw-r--r-- | src/suites/path.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/suites/path.py b/src/suites/path.py index 2c38c5c..c0d8c91 100644 --- a/src/suites/path.py +++ b/src/suites/path.py @@ -6,7 +6,7 @@ # By: charles <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/09 15:12:58 by charles #+# #+# # -# Updated: 2020/09/15 13:37:17 by charles ### ########.fr # +# Updated: 2020/09/15 14:10:37 by charles ### ########.fr # # # # ############################################################################ # @@ -64,6 +64,10 @@ def suite_path(test): test("b", setup="mkdir path && ln -s /bin/whoami ./path/b", exports={"PATH": "path"}) test("a", setup="mkdir path && mkfifo path/a") test("a", setup="mkdir path && mkfifo path/a && chmod 777 path/a") + test("a", setup="mkdir path1 path2 && cp /bin/whoami path1/a" + "&& cp /bin/whoami path2/a && chmod 000 path1/a", exports={"PATH": "path1:path2"}) + test("a", setup="mkdir path1 path2 && cp /bin/whoami path1/a" + "&& cp /bin/whoami path2/a && chmod 000 path1/a", exports={"PATH": "path2:path1"}) @suite() |
