Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] oeqa: Refactor test skipping decorators to use the unittest result object
@ 2014-07-24 12:41 Lucian Musat
  2014-07-24 12:41 ` [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it Lucian Musat
  0 siblings, 1 reply; 5+ messages in thread
From: Lucian Musat @ 2014-07-24 12:41 UTC (permalink / raw)
  To: openembedded-core

In order to make the test skipping decorators independent of the oeTest object we rely on the unittest result object to construct skip, fail and error lists used by these decorators.
Created a new object getResults that analyses upper frames and retrieves the unittest result object instance, then return a list of failed, skipped and error tests.
Also removed the oetest import from decorators.py because it was no longer required.

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
---
 meta/lib/oeqa/oetest.py           | 17 -----------------
 meta/lib/oeqa/utils/decorators.py | 40 +++++++++++++++++++++++++++++++++------
 2 files changed, 34 insertions(+), 23 deletions(-)

diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0db6cb8..ecb8e53 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -11,7 +11,6 @@ import os, re, mmap
 import unittest
 import inspect
 
-
 def loadTests(tc):
 
     # set the context object passed from the test class
@@ -36,24 +35,9 @@ def runTests(tc):
 
     return result
 
-
 class oeTest(unittest.TestCase):
 
     longMessage = True
-    testFailures = []
-    testSkipped = []
-    testErrors = []
-
-    def run(self, result=None):
-        super(oeTest, self).run(result)
-
-        # we add to our own lists the results, we use those for decorators
-        if len(result.failures) > len(oeTest.testFailures):
-            oeTest.testFailures.append(str(result.failures[-1][0]).split()[0])
-        if len(result.skipped) > len(oeTest.testSkipped):
-            oeTest.testSkipped.append(str(result.skipped[-1][0]).split()[0])
-        if len(result.errors) > len(oeTest.testErrors):
-            oeTest.testErrors.append(str(result.errors[-1][0]).split()[0])
 
     @classmethod
     def hasPackage(self, pkg):
@@ -71,7 +55,6 @@ class oeTest(unittest.TestCase):
         else:
             return False
 
-
 class oeRuntimeTest(oeTest):
 
     def __init__(self, methodName='runTest'):
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index a0d94e6..439e80a 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -6,9 +6,34 @@
 # Most useful is skipUnlessPassed which can be used for
 # creating dependecies between two test methods.
 
-from oeqa.oetest import *
 import logging
 import sys
+import unittest
+
+#get the "result" object from one of the upper frames provided that one of these upper frames is a unittest.case frame
+class getResults(object):
+    def __init__(self):
+        #dynamically determine the unittest.case frame and use it to get the name of the test method
+        upperf = sys._current_frames().values()[0]
+        while (upperf.f_globals['__name__'] != 'unittest.case'):
+            upperf = upperf.f_back
+        self.faillist = [ seq[0]._testMethodName for seq in upperf.f_locals['result'].failures ]
+        self.errorlist = [ seq[0]._testMethodName for seq in upperf.f_locals['result'].errors ]
+        #ignore the _ErrorHolder objects from the skipped tests list
+        self.skiplist = []
+        for seq in upperf.f_locals['result'].skipped:
+            try:
+                self.skiplist.append(seq[0]._testMethodName)
+            except: pass
+
+    def getFailList(self):
+        return self.faillist
+
+    def getErrorList(self):
+        return self.errorlist
+
+    def getSkipList(self):
+        return self.skiplist
 
 class skipIfFailure(object):
 
@@ -17,7 +42,8 @@ class skipIfFailure(object):
 
     def __call__(self,f):
         def wrapped_f(*args):
-            if self.testcase in (oeTest.testFailures or oeTest.testErrors):
+            res = getResults()
+            if self.testcase in (res.getFailList() or res.getErrorList()):
                 raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
             return f(*args)
         wrapped_f.__name__ = f.__name__
@@ -30,7 +56,8 @@ class skipIfSkipped(object):
 
     def __call__(self,f):
         def wrapped_f(*args):
-            if self.testcase in oeTest.testSkipped:
+            res = getResults()
+            if self.testcase in res.getSkipList():
                 raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
             return f(*args)
         wrapped_f.__name__ = f.__name__
@@ -43,9 +70,10 @@ class skipUnlessPassed(object):
 
     def __call__(self,f):
         def wrapped_f(*args):
-            if self.testcase in oeTest.testSkipped or \
-                    self.testcase in  oeTest.testFailures or \
-                    self.testcase in oeTest.testErrors:
+            res = getResults()
+            if self.testcase in res.getSkipList() or \
+                    self.testcase in res.getFailList() or \
+                    self.testcase in res.getErrorList():
                 raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
             return f(*args)
         wrapped_f.__name__ = f.__name__
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it.
  2014-07-24 12:41 [PATCH 1/2] oeqa: Refactor test skipping decorators to use the unittest result object Lucian Musat
@ 2014-07-24 12:41 ` Lucian Musat
  2014-07-25 16:16   ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Lucian Musat @ 2014-07-24 12:41 UTC (permalink / raw)
  To: openembedded-core

The modules that use skipModule should import it themselves and not rely on somebody else to import it.

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
---
 meta/lib/oeqa/runtime/buildcvs.py      | 2 +-
 meta/lib/oeqa/runtime/buildiptables.py | 2 +-
 meta/lib/oeqa/runtime/buildsudoku.py   | 2 +-
 meta/lib/oeqa/runtime/ldd.py           | 2 +-
 meta/lib/oeqa/runtime/pam.py           | 8 ++++----
 meta/lib/oeqa/runtime/skeletoninit.py  | 2 +-
 meta/lib/oeqa/runtime/smart.py         | 2 +-
 meta/lib/oeqa/runtime/vnc.py           | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/meta/lib/oeqa/runtime/buildcvs.py b/meta/lib/oeqa/runtime/buildcvs.py
index f1fbf19..6201ed1 100644
--- a/meta/lib/oeqa/runtime/buildcvs.py
+++ b/meta/lib/oeqa/runtime/buildcvs.py
@@ -1,4 +1,4 @@
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 from oeqa.utils.targetbuild import TargetBuildProject
 
diff --git a/meta/lib/oeqa/runtime/buildiptables.py b/meta/lib/oeqa/runtime/buildiptables.py
index f6061a7..c77b114 100644
--- a/meta/lib/oeqa/runtime/buildiptables.py
+++ b/meta/lib/oeqa/runtime/buildiptables.py
@@ -1,4 +1,4 @@
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 from oeqa.utils.targetbuild import TargetBuildProject
 
diff --git a/meta/lib/oeqa/runtime/buildsudoku.py b/meta/lib/oeqa/runtime/buildsudoku.py
index a754f1d..f51af92 100644
--- a/meta/lib/oeqa/runtime/buildsudoku.py
+++ b/meta/lib/oeqa/runtime/buildsudoku.py
@@ -1,4 +1,4 @@
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 from oeqa.utils.targetbuild import TargetBuildProject
 
diff --git a/meta/lib/oeqa/runtime/ldd.py b/meta/lib/oeqa/runtime/ldd.py
index 4374530..079130f 100644
--- a/meta/lib/oeqa/runtime/ldd.py
+++ b/meta/lib/oeqa/runtime/ldd.py
@@ -1,5 +1,5 @@
 import unittest
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 
 def setUpModule():
diff --git a/meta/lib/oeqa/runtime/pam.py b/meta/lib/oeqa/runtime/pam.py
index cc5c1bd..c26e6ea 100644
--- a/meta/lib/oeqa/runtime/pam.py
+++ b/meta/lib/oeqa/runtime/pam.py
@@ -2,7 +2,7 @@
 # Note that the image under test must have "pam" in DISTRO_FEATURES
 
 import unittest
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 
 def setUpModule():
@@ -17,8 +17,8 @@ class PamBasicTest(oeRuntimeTest):
         (status, output) = self.target.run('login --help')
         self.assertEqual(status, 1, msg = "login command does not work as expected. Status and output:%s and %s" %(status, output))
         (status, output) = self.target.run('passwd --help')
-        self.assertEqual(status, 0, msg = "passwd command does not work as expected. Status and output:%s and %s" %(status, output))
+        self.assertEqual(status, 6, msg = "passwd command does not work as expected. Status and output:%s and %s" %(status, output))
         (status, output) = self.target.run('su --help')
-        self.assertEqual(status, 0, msg = "su command does not work as expected. Status and output:%s and %s" %(status, output))
+        self.assertEqual(status, 2, msg = "su command does not work as expected. Status and output:%s and %s" %(status, output))
         (status, output) = self.target.run('useradd --help')
-        self.assertEqual(status, 0, msg = "useradd command does not work as expected. Status and output:%s and %s" %(status, output))
+        self.assertEqual(status, 2, msg = "useradd command does not work as expected. Status and output:%s and %s" %(status, output))
diff --git a/meta/lib/oeqa/runtime/skeletoninit.py b/meta/lib/oeqa/runtime/skeletoninit.py
index 557e715..ddcad20 100644
--- a/meta/lib/oeqa/runtime/skeletoninit.py
+++ b/meta/lib/oeqa/runtime/skeletoninit.py
@@ -2,7 +2,7 @@
 # Note that the image under test must have meta-skeleton layer in bblayers and IMAGE_INSTALL_append = " service" in local.conf
 
 import unittest
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 
 def setUpModule():
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index 195f117..3130373 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -1,6 +1,6 @@
 import unittest
 import re
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModule
 from oeqa.utils.decorators import *
 from oeqa.utils.httpserver import HTTPService
 
diff --git a/meta/lib/oeqa/runtime/vnc.py b/meta/lib/oeqa/runtime/vnc.py
index 5ed1072..1b4652b 100644
--- a/meta/lib/oeqa/runtime/vnc.py
+++ b/meta/lib/oeqa/runtime/vnc.py
@@ -1,4 +1,4 @@
-from oeqa.oetest import oeRuntimeTest
+from oeqa.oetest import oeRuntimeTest, skipModuleUnless
 from oeqa.utils.decorators import *
 import re
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it.
  2014-07-24 12:41 ` [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it Lucian Musat
@ 2014-07-25 16:16   ` Paul Eggleton
  2014-07-25 16:29     ` Richard Purdie
  2014-07-28  6:56     ` Stoicescu, CorneliuX
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Eggleton @ 2014-07-25 16:16 UTC (permalink / raw)
  To: openembedded-core

On Thursday 24 July 2014 15:41:25 Lucian Musat wrote:
> The modules that use skipModule should import it themselves and not rely on
> somebody else to import it.
> 
> Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
> ---
>  meta/lib/oeqa/runtime/buildcvs.py      | 2 +-
>  meta/lib/oeqa/runtime/buildiptables.py | 2 +-
>  meta/lib/oeqa/runtime/buildsudoku.py   | 2 +-
>  meta/lib/oeqa/runtime/ldd.py           | 2 +-
>  meta/lib/oeqa/runtime/pam.py           | 8 ++++----
>  meta/lib/oeqa/runtime/skeletoninit.py  | 2 +-
>  meta/lib/oeqa/runtime/smart.py         | 2 +-
>  meta/lib/oeqa/runtime/vnc.py           | 2 +-
>  8 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/meta/lib/oeqa/runtime/buildcvs.py
> b/meta/lib/oeqa/runtime/buildcvs.py index f1fbf19..6201ed1 100644
> --- a/meta/lib/oeqa/runtime/buildcvs.py
> +++ b/meta/lib/oeqa/runtime/buildcvs.py
> @@ -1,4 +1,4 @@
> -from oeqa.oetest import oeRuntimeTest
> +from oeqa.oetest import oeRuntimeTest, skipModule
>  from oeqa.utils.decorators import *
>  from oeqa.utils.targetbuild import TargetBuildProject
> 
> diff --git a/meta/lib/oeqa/runtime/buildiptables.py
> b/meta/lib/oeqa/runtime/buildiptables.py index f6061a7..c77b114 100644
> --- a/meta/lib/oeqa/runtime/buildiptables.py
> +++ b/meta/lib/oeqa/runtime/buildiptables.py
> @@ -1,4 +1,4 @@
> -from oeqa.oetest import oeRuntimeTest
> +from oeqa.oetest import oeRuntimeTest, skipModule
>  from oeqa.utils.decorators import *
>  from oeqa.utils.targetbuild import TargetBuildProject
> 
> diff --git a/meta/lib/oeqa/runtime/buildsudoku.py
> b/meta/lib/oeqa/runtime/buildsudoku.py index a754f1d..f51af92 100644
> --- a/meta/lib/oeqa/runtime/buildsudoku.py
> +++ b/meta/lib/oeqa/runtime/buildsudoku.py
> @@ -1,4 +1,4 @@
> -from oeqa.oetest import oeRuntimeTest
> +from oeqa.oetest import oeRuntimeTest, skipModule
>  from oeqa.utils.decorators import *
>  from oeqa.utils.targetbuild import TargetBuildProject
> 
> diff --git a/meta/lib/oeqa/runtime/ldd.py b/meta/lib/oeqa/runtime/ldd.py
> index 4374530..079130f 100644
> --- a/meta/lib/oeqa/runtime/ldd.py
> +++ b/meta/lib/oeqa/runtime/ldd.py
> @@ -1,5 +1,5 @@
>  import unittest
> -from oeqa.oetest import oeRuntimeTest
> +from oeqa.oetest import oeRuntimeTest, skipModule
>  from oeqa.utils.decorators import *
> 
>  def setUpModule():
> diff --git a/meta/lib/oeqa/runtime/pam.py b/meta/lib/oeqa/runtime/pam.py
> index cc5c1bd..c26e6ea 100644
> --- a/meta/lib/oeqa/runtime/pam.py
> +++ b/meta/lib/oeqa/runtime/pam.py
> @@ -2,7 +2,7 @@
>  # Note that the image under test must have "pam" in DISTRO_FEATURES
> 
>  import unittest
> -from oeqa.oetest import oeRuntimeTest
> +from oeqa.oetest import oeRuntimeTest, skipModule
>  from oeqa.utils.decorators import *
> 
>  def setUpModule():
> @@ -17,8 +17,8 @@ class PamBasicTest(oeRuntimeTest):
>          (status, output) = self.target.run('login --help')
>          self.assertEqual(status, 1, msg = "login command does not work as
> expected. Status and output:%s and %s" %(status, output)) (status, output)
> = self.target.run('passwd --help')
> -        self.assertEqual(status, 0, msg = "passwd command does not work as
> expected. Status and output:%s and %s" %(status, output)) +       
> self.assertEqual(status, 6, msg = "passwd command does not work as
> expected. Status and output:%s and %s" %(status, output)) (status, output)
> = self.target.run('su --help')
> -        self.assertEqual(status, 0, msg = "su command does not work as
> expected. Status and output:%s and %s" %(status, output)) +       
> self.assertEqual(status, 2, msg = "su command does not work as expected.
> Status and output:%s and %s" %(status, output)) (status, output) =
> self.target.run('useradd --help')
> -        self.assertEqual(status, 0, msg = "useradd command does not work as
> expected. Status and output:%s and %s" %(status, output)) +       
> self.assertEqual(status, 2, msg = "useradd command does not work as
> expected. Status and output:%s and %s" %(status, output))

Stefan pointed out to me that this contains a seemingly unintentional revert 
of the following earlier change:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/lib/oeqa/runtime/pam.py?id=14735be703de1b1e173d444b51df7aad902428d5

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it.
  2014-07-25 16:16   ` Paul Eggleton
@ 2014-07-25 16:29     ` Richard Purdie
  2014-07-28  6:56     ` Stoicescu, CorneliuX
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2014-07-25 16:29 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On Fri, 2014-07-25 at 17:16 +0100, Paul Eggleton wrote:
> Stefan pointed out to me that this contains a seemingly unintentional revert 
> of the following earlier change:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/lib/oeqa/runtime/pam.py?id=14735be703de1b1e173d444b51df7aad902428d5

Thanks, I've fixed that.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it.
  2014-07-25 16:16   ` Paul Eggleton
  2014-07-25 16:29     ` Richard Purdie
@ 2014-07-28  6:56     ` Stoicescu, CorneliuX
  1 sibling, 0 replies; 5+ messages in thread
From: Stoicescu, CorneliuX @ 2014-07-28  6:56 UTC (permalink / raw)
  To: Paul Eggleton, openembedded-core@lists.openembedded.org

Yes, thank you! This slipped through our fingers.

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf
> Of Paul Eggleton
> Sent: Friday, July 25, 2014 7:16 PM
> To: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 2/2] oeqa/runtime: Added skipModule import
> for test modules that use it.
> 
> On Thursday 24 July 2014 15:41:25 Lucian Musat wrote:
> > The modules that use skipModule should import it themselves and not
> > rely on somebody else to import it.
> >
> > Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
> > ---
> >  meta/lib/oeqa/runtime/buildcvs.py      | 2 +-
> >  meta/lib/oeqa/runtime/buildiptables.py | 2 +-
> >  meta/lib/oeqa/runtime/buildsudoku.py   | 2 +-
> >  meta/lib/oeqa/runtime/ldd.py           | 2 +-
> >  meta/lib/oeqa/runtime/pam.py           | 8 ++++----
> >  meta/lib/oeqa/runtime/skeletoninit.py  | 2 +-
> >  meta/lib/oeqa/runtime/smart.py         | 2 +-
> >  meta/lib/oeqa/runtime/vnc.py           | 2 +-
> >  8 files changed, 11 insertions(+), 11 deletions(-)
> >
> > diff --git a/meta/lib/oeqa/runtime/buildcvs.py
> > b/meta/lib/oeqa/runtime/buildcvs.py index f1fbf19..6201ed1 100644
> > --- a/meta/lib/oeqa/runtime/buildcvs.py
> > +++ b/meta/lib/oeqa/runtime/buildcvs.py
> > @@ -1,4 +1,4 @@
> > -from oeqa.oetest import oeRuntimeTest
> > +from oeqa.oetest import oeRuntimeTest, skipModule
> >  from oeqa.utils.decorators import *
> >  from oeqa.utils.targetbuild import TargetBuildProject
> >
> > diff --git a/meta/lib/oeqa/runtime/buildiptables.py
> > b/meta/lib/oeqa/runtime/buildiptables.py index f6061a7..c77b114 100644
> > --- a/meta/lib/oeqa/runtime/buildiptables.py
> > +++ b/meta/lib/oeqa/runtime/buildiptables.py
> > @@ -1,4 +1,4 @@
> > -from oeqa.oetest import oeRuntimeTest
> > +from oeqa.oetest import oeRuntimeTest, skipModule
> >  from oeqa.utils.decorators import *
> >  from oeqa.utils.targetbuild import TargetBuildProject
> >
> > diff --git a/meta/lib/oeqa/runtime/buildsudoku.py
> > b/meta/lib/oeqa/runtime/buildsudoku.py index a754f1d..f51af92 100644
> > --- a/meta/lib/oeqa/runtime/buildsudoku.py
> > +++ b/meta/lib/oeqa/runtime/buildsudoku.py
> > @@ -1,4 +1,4 @@
> > -from oeqa.oetest import oeRuntimeTest
> > +from oeqa.oetest import oeRuntimeTest, skipModule
> >  from oeqa.utils.decorators import *
> >  from oeqa.utils.targetbuild import TargetBuildProject
> >
> > diff --git a/meta/lib/oeqa/runtime/ldd.py
> > b/meta/lib/oeqa/runtime/ldd.py index 4374530..079130f 100644
> > --- a/meta/lib/oeqa/runtime/ldd.py
> > +++ b/meta/lib/oeqa/runtime/ldd.py
> > @@ -1,5 +1,5 @@
> >  import unittest
> > -from oeqa.oetest import oeRuntimeTest
> > +from oeqa.oetest import oeRuntimeTest, skipModule
> >  from oeqa.utils.decorators import *
> >
> >  def setUpModule():
> > diff --git a/meta/lib/oeqa/runtime/pam.py
> > b/meta/lib/oeqa/runtime/pam.py index cc5c1bd..c26e6ea 100644
> > --- a/meta/lib/oeqa/runtime/pam.py
> > +++ b/meta/lib/oeqa/runtime/pam.py
> > @@ -2,7 +2,7 @@
> >  # Note that the image under test must have "pam" in DISTRO_FEATURES
> >
> >  import unittest
> > -from oeqa.oetest import oeRuntimeTest
> > +from oeqa.oetest import oeRuntimeTest, skipModule
> >  from oeqa.utils.decorators import *
> >
> >  def setUpModule():
> > @@ -17,8 +17,8 @@ class PamBasicTest(oeRuntimeTest):
> >          (status, output) = self.target.run('login --help')
> >          self.assertEqual(status, 1, msg = "login command does not
> > work as expected. Status and output:%s and %s" %(status, output))
> > (status, output) = self.target.run('passwd --help')
> > -        self.assertEqual(status, 0, msg = "passwd command does not work as
> > expected. Status and output:%s and %s" %(status, output)) +
> > self.assertEqual(status, 6, msg = "passwd command does not work as
> > expected. Status and output:%s and %s" %(status, output)) (status,
> > output) = self.target.run('su --help')
> > -        self.assertEqual(status, 0, msg = "su command does not work as
> > expected. Status and output:%s and %s" %(status, output)) +
> > self.assertEqual(status, 2, msg = "su command does not work as expected.
> > Status and output:%s and %s" %(status, output)) (status, output) =
> > self.target.run('useradd --help')
> > -        self.assertEqual(status, 0, msg = "useradd command does not work as
> > expected. Status and output:%s and %s" %(status, output)) +
> > self.assertEqual(status, 2, msg = "useradd command does not work as
> > expected. Status and output:%s and %s" %(status, output))
> 
> Stefan pointed out to me that this contains a seemingly unintentional revert
> of the following earlier change:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/lib/oeqa/runti
> me/pam.py?id=14735be703de1b1e173d444b51df7aad902428d5
> 
> Cheers,
> Paul
> 
> --
> 
> Paul Eggleton
> Intel Open Source Technology Centre
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-28  6:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 12:41 [PATCH 1/2] oeqa: Refactor test skipping decorators to use the unittest result object Lucian Musat
2014-07-24 12:41 ` [PATCH 2/2] oeqa/runtime: Added skipModule import for test modules that use it Lucian Musat
2014-07-25 16:16   ` Paul Eggleton
2014-07-25 16:29     ` Richard Purdie
2014-07-28  6:56     ` Stoicescu, CorneliuX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox