From a3e983f78dc4cbcf6f75f78fa2b3c57e09cd1b2b Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 5 Feb 2021 01:38:33 +0100 Subject: Added a few flake8 plugin --- src/suites/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/suites/path.py') diff --git a/src/suites/path.py b/src/suites/path.py index 5db1e36..93d4232 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/15 09:17:09 by cacharle ### ########.fr # +# Updated: 2021/02/04 16:14:20 by charles ### ########.fr # # # # ############################################################################ # @@ -19,6 +19,9 @@ from suite import suite def suite_path(test): """ searching a command in the path tests """ whoami_path = distutils.spawn.find_executable("which") + 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") -- cgit