gst-qa-system: Hide expected-failures from the storage backend.
Edward Hervey
bilboed at kemper.freedesktop.org
Tue Sep 20 03:40:26 PDT 2011
Module: gst-qa-system
Branch: master
Commit: 21890029ccf8e1e51cea494151d1c77c652a2c07
URL: http://cgit.freedesktop.org/gstreamer/gst-qa-system/commit/?id=21890029ccf8e1e51cea494151d1c77c652a2c07
Author: David Laban <david.laban at collabora.co.uk>
Date: Mon Sep 12 21:49:58 2011 +0100
Hide expected-failures from the storage backend.
* Add a special case in getArguments to remove it.
---
insanity/monitor.py | 6 ++++--
insanity/scenario.py | 2 ++
insanity/test.py | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/insanity/monitor.py b/insanity/monitor.py
index 4ba630e..6f9978d 100644
--- a/insanity/monitor.py
+++ b/insanity/monitor.py
@@ -181,9 +181,11 @@ class Monitor(object):
"""
Returns the list of arguments for the given test
"""
- validkeys = self.getFullArgumentList().keys()
+ validkeys = self.getFullArgumentList()
+ # Hide expected-failures from the storage backend.
+ validkeys.pop("expected-failures", [])
res = {}
- for key in self.arguments.iterkeys():
+ for key in self.arguments:
if key in validkeys:
res[key] = self.arguments[key]
return res
diff --git a/insanity/scenario.py b/insanity/scenario.py
index 317372b..1a8692f 100644
--- a/insanity/scenario.py
+++ b/insanity/scenario.py
@@ -183,6 +183,8 @@ class Scenario(Test):
Returns the list of valid arguments for this scenario.
"""
validkeys = self._getFullArgumentList()
+ # Hide expected-failures from the storage backend.
+ validkeys.pop("expected-failures", [])
res = {}
for key in self.arguments.iterkeys():
if key in validkeys:
diff --git a/insanity/test.py b/insanity/test.py
index 5f8b1d7..02360f9 100644
--- a/insanity/test.py
+++ b/insanity/test.py
@@ -603,7 +603,9 @@ class Test(gobject.GObject):
"""
Returns the list of arguments for the given test
"""
- validkeys = self.getFullArgumentList().keys()
+ validkeys = self.getFullArgumentList()
+ # Hide expected-failures from the storage backend.
+ validkeys.pop("expected-failures", [])
res = {}
for key in self.arguments.iterkeys():
if key in validkeys:
More information about the gstreamer-commits
mailing list