[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4433/8267] oeqa/core/context.py: Add validation for run-tests option



commit bfead495de7ad78e7bc2ec550676a16420e98edc
Author: Aníbal Limón <anibal limon linux intel com>
Date:   Tue Jan 31 15:05:53 2017 -0600

    oeqa/core/context.py: Add validation for run-tests option
    
    The run-tests option is optional so if isn't specified set
    to None instead of crash on split().
    
    (From OE-Core rev: 877732406cad2ee4bf11293dc8ccddc2998ffbaf)
    
    Signed-off-by: Aníbal Limón <anibal limon linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/lib/oeqa/core/context.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index efed4e6..4476750 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -215,7 +215,11 @@ class OETestContextExecutor(object):
         else:
             self.tc_kwargs['init']['td'] = {}
 
-        self.tc_kwargs['load']['modules'] = args.run_tests.split()
+
+        if args.run_tests:
+            self.tc_kwargs['load']['modules'] = args.run_tests.split()
+        else:
+            self.tc_kwargs['load']['modules'] = None
 
         self.module_paths = args.CASES_PATHS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]