Author: gnichols
Date: 2012-03-16 16:40:34 +0000 (Fri, 16 Mar 2012)
New Revision: 1228
Modified:
trunk/tests/audio/audio.py
Log:
750721 - audio: Warning: could not log sound card information
Modified: trunk/tests/audio/audio.py
===================================================================
--- trunk/tests/audio/audio.py 2012-03-16 16:38:07 UTC (rev 1227)
+++ trunk/tests/audio/audio.py 2012-03-16 16:40:34 UTC (rev 1228)
@@ -46,8 +46,6 @@
return rpms
def logSoundCardInfo(self):
-
-
if self.getUDI():
hal = Hal()
self.device = hal.getDevice(self.getUDI())
@@ -57,17 +55,17 @@
print "\nSound Card:"
print hal.dumpDevice(parentUDI)
print ""
+ return True
# otherwise
- print "Warning: could not log sound card information"
return False
-
-
def run(self):
FAILED = 1
PASSED = 0
- self.logSoundCardInfo()
+ if not self.logSoundCardInfo():
+ print "Error: could not log sound card information"
+ return FAILED
if self.getMode() == Constants.auto:
print("Error: Test Mode: %s: The audio test can not be run in auto mode
since audio functions must be verified by the tester." % self.getMode())
Show replies by date