Use dib-run-parts.
dib-run-parts is simpler and gives us profiling data. The --list option was removed because it's not yet supported. Change-Id: Icab4c5c04a26572e9b8564a25b1a328c889ead1c
This commit is contained in:
parent
91f75348fb
commit
d8c7de3d8b
|
@ -40,8 +40,6 @@ def main(argv=sys.argv):
|
|||
help='Print base dir and exit')
|
||||
parser.add_argument('--print-phases', default=False, action='store_true',
|
||||
help='Print phases (tab separated) and exit')
|
||||
parser.add_argument('--list', default=False, action='store_true',
|
||||
help='Just show what would be run')
|
||||
parser.add_argument('--log-level', default='INFO',
|
||||
choices=['ERROR', 'WARN', 'CRITICAL', 'INFO', 'DEBUG'])
|
||||
options = parser.parse_args(argv[1:])
|
||||
|
@ -66,9 +64,7 @@ def main(argv=sys.argv):
|
|||
phase_dir = os.path.join(BASE_DIR, '%s.d' % phase)
|
||||
log.debug('Checking %s' % phase_dir)
|
||||
if os.path.exists(phase_dir):
|
||||
args = ['run-parts', '-v']
|
||||
if options.list:
|
||||
args.append('--list')
|
||||
args = ['dib-run-parts']
|
||||
args.append(phase_dir)
|
||||
try:
|
||||
log.info('Starting phase %s' % phase)
|
||||
|
|
Loading…
Reference in New Issue