After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678837 - Failure to start tests without specifying an stdout/stderr file
Failure to start tests without specifying an stdout/stderr file
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-qa-system
0.11.x
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-26 08:14 UTC by Sebastian Dröge (slomo)
Modified: 2012-10-06 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2012-06-26 08:14:14 UTC
$ insanity-run -T . -t play-test -a uri:constant:file:///media/data/Videos/Kiwi.flv 
Starting <TestRun object at 0x142bb40 (insanity+testrun+TestRun at 0x1496800)>
2012-06-26 10:12:11,948  0x7f8d30bc0700       ERROR  dbustest.py:198:setUp: Error starting the subprocess command ! ['/home/slomo/Projects/gstreamer/head/insanity-gst/tests/insanity-test-gst-play', '--run', '--dbus-uuid=2fbc4d23e115d1bcc6b60429014248e7']
Traceback (most recent call last):
  • File "/home/slomo/Projects/gstreamer/head/insanity/insanity/dbustest.py", line 194 in setUp
    self._stdout, self._stderr)
  • File "/home/slomo/Projects/gstreamer/head/insanity/insanity/threads.py", line 248 in __init__
    self.setStdoutFile(outfile_path)
  • File "/home/slomo/Projects/gstreamer/head/insanity/insanity/threads.py", line 271 in setStdoutFile
    self._stdoutfile = open(outfile_path, "a")
TypeError: coercing to Unicode: need string or buffer, NoneType found
2012-06-26 10:12:11,950  0x7f8d30bc0700       ERROR  test.py:331:run: Something went wrong during setup !



Also setting the filenames seems to be done after the thread is started. Will it nonetheless catch all the output and put it into the files?
Comment 1 Thibault Saunier 2012-06-26 15:58:45 UTC
commit 09578417f0727ff892619b5dc67b670c7ba9ec89
Author: Thibault Saunier <thibault.saunier@collabora.com>
Date:   Tue Jun 26 11:53:18 2012 -0400

    dbustest: Properly handle cases where there is no stderr/stdout redirection
    
    Fixes #678837 Failure to start tests without specifying an stdout/stderr 
file