From 310ddc2208bd40e3950ebf89efe62f747be8277f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 15 Oct 2020 09:36:10 +0200 Subject: Added case insensitive PATH search tests --- src/suites/path.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/suites/path.py') diff --git a/src/suites/path.py b/src/suites/path.py index a09c64a..5db1e36 100644 --- a/src/suites/path.py +++ b/src/suites/path.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/09 15:12:58 by charles #+# #+# # -# Updated: 2020/10/09 12:58:55 by cacharle ### ########.fr # +# Updated: 2020/10/15 09:17:09 by cacharle ### ########.fr # # # # ############################################################################ # @@ -66,6 +66,7 @@ def suite_path(test): test("a", setup=mode_fmt.format("6777"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("7777"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("0000"), exports={"PATH": "path"}) + test("A", setup=mode_fmt.format("000"), exports={"PATH": "path"}) # test("b", setup="mkdir path && cp " + whoami_path + " ./path/a && ln -s ./path/a ./path/b", # exports={"PATH": "path"}) test("b", setup="mkdir path && ln -s " + whoami_path + " ./path/b", exports={"PATH": "path"}) @@ -123,3 +124,11 @@ def suite_path_variable(test): test("somecmd", setup=create_cmd_setup, exports={"PATH": "/bin:"}) test("somecmd", setup=create_cmd_setup, exports={"PATH": ":/bin"}) test("somecmd", setup=create_cmd_setup, exports={"PATH": ":/bin:"}) + test("Whoami", exports={"PATH": "/usr/bin"}) + test("wHoAMi", exports={"PATH": "/usr/bin"}) + test("whoami", exports={"PATH": "/usr/bIn"}) + test("whoami", exports={"PATH": "/Usr/bin"}) + test("Whoami", exports={"PATH": "/usr/bIn"}) + test("wHoami", exports={"PATH": "/Usr/bin"}) + test("Whoami", exports={"PATH": ""}) + test("wHoami", exports={"PATH": ""}) -- cgit