aboutsummaryrefslogtreecommitdiff
path: root/src/suites/path.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-08 08:43:12 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-08 08:43:12 +0200
commitc20cbfea9bb878fc88e76f0ba773ded5a7b149ca (patch)
treea49139c7f4a85cfab07df1d41be15a0275010fe6 /src/suites/path.py
parent0cf5d76836a6499de4e30c4066d8709099ff6331 (diff)
downloadminishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.tar.gz
minishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.tar.bz2
minishell_test-c20cbfea9bb878fc88e76f0ba773ded5a7b149ca.zip
Added suite description for -l option
Diffstat (limited to 'src/suites/path.py')
-rw-r--r--src/suites/path.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/suites/path.py b/src/suites/path.py
index d5dabb6..13866de 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/10/07 15:16:49 by cacharle ### ########.fr #
+# Updated: 2020/10/08 08:41:38 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -17,6 +17,7 @@ from suite import suite
@suite()
def suite_path(test):
+ """ searching a command in the path tests """
whoami_path = distutils.spawn.find_executable("which")
mode_fmt = ("mkdir path && cp " +
whoami_path +
@@ -78,6 +79,7 @@ def suite_path(test):
@suite()
def suite_path_variable(test):
+ """ $PATH environment variable tests """
test("echo $PATH", exports={"PATH": "doesnotexits"})
test("echo $PATH", exports={"PATH": "doesnotexits:asdfasdfas"})
test("echo $PATH", exports={"PATH": "a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z"})