self.time_taken = 0.0
self._starting_time = None
self.result = Result.NOT_RUN
+ self.logfile = None
def __str__(self):
string = self.classname
if self.result != Result.NOT_RUN:
string += ": " + self.result
if self.result in [Result.FAILED, Result.TIMEOUT]:
- string += " '%s'\n You can reproduce with: %s" \
- % (self.message, self.command)
+ string += " '%s'\n You can reproduce with: %s\n " \
+ "You can find logs in: %s" % (self.message, self.command,
+ self.logfile)
return string
mkdir(os.path.dirname(path))
self.out = open(path, 'w+')
self._current_test = test
+ test.logfile = path
def set_failed(self, test):
self.stats["failure"] += 1
"mp4": "video/quicktime,variant=iso;",
"webm": "video/webm"}
+
def get_profile_full(muxer, venc, aenc, video_restriction=None,
audio_restriction=None,
audio_presence=0, video_presence=0):
return ret.replace("::", ":")
-
def get_profile(combination):
return get_profile_full(FORMATS[combination.container],
FORMATS[combination.vcodec],