runner: allow arch not to be specified
ClosedPublic

Authored by kparal on May 9 2014, 12:33 PM.

Details

Summary

This fixes a regression from 052595d , which caused tracebacks when you
tried to execute a task without any arch specified. It also implements a
default value when this happens.

Test Plan

Before this patch:

$ runtask -i ttfautohint-1.1-1.fc20 -t bodhi_id upgradepath.yml 
[libtaskotron:logger.py:63] 2014-05-09 13:33:42 DEBUG   doing stream logging
[libtaskotron:logger.py:34] 2014-05-09 13:33:42 CRITICAL Traceback (most recent call last):
  File "/home/kparal/devel/taskotron/env_taskotron/bin/runtask", line 9, in <module>
    load_entry_point('libtaskotron==0.0.3', 'console_scripts', 'runtask')()
  File "/home/kparal/devel/taskotron/libtaskotron/libtaskotron/runner.py", line 183, in main
    arg_data['arch'] = ','.join(arg_data['arch'])
TypeError

Now it works OK. Tests adjusted.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
tflink accepted this revision.May 9 2014, 1:23 PM

Other than finding a small bug that was probably mine, looks good to me.

testing/test_runner.py
358

I think this is a bug from my code, but this should be 'arch': ['x86_64', 'i386', 'noarch']. While you're in this code, could you fix it anyways?

kparal closed this revision.May 9 2014, 2:23 PM

Closed by commit rLTRN8731ae554c83 (authored by @kparal).