[Piglit] [PATCH 08/14] core.py: make second argument to check_dir a keyword argument

Dylan Baker dylan at pnwbakers.com
Fri May 6 20:07:18 UTC 2016


From: Dylan Baker <baker.dylan.c at gmail.com>

This allows callers that don't want to fail to leave the keyword out. It
doesn't affect those that set it to true.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/core.py b/framework/core.py
index dfab227..97b9a4b 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -115,7 +115,7 @@ def get_config(arg=None):
 
 
 # Ensure the given directory exists
-def check_dir(dirname, failifexists):
+def check_dir(dirname, failifexists=False):
     try:
         os.stat(dirname)
     except OSError as e:
-- 
2.8.2



More information about the Piglit mailing list