mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Provide a default log if none is provided.
This commit is contained in:
parent
5fdd664b18
commit
85b46b85f1
@ -21,6 +21,7 @@
|
|||||||
# Determine the defaults and load the specific file.
|
# Determine the defaults and load the specific file.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import datetime
|
||||||
import glob
|
import glob
|
||||||
import pprint
|
import pprint
|
||||||
import re
|
import re
|
||||||
@ -458,7 +459,7 @@ class command_line:
|
|||||||
def logfiles(self):
|
def logfiles(self):
|
||||||
if 'log' in self.opts and self.opts['log'] is not None:
|
if 'log' in self.opts and self.opts['log'] is not None:
|
||||||
return self.opts['log'].split(',')
|
return self.opts['log'].split(',')
|
||||||
return ['stdout']
|
return ['rsb-log-%s.txt' % (datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))]
|
||||||
|
|
||||||
def urls(self):
|
def urls(self):
|
||||||
if self.opts['url'] is not None:
|
if self.opts['url'] is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user