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.
Details
Details
- Reviewers
tflink mkrizek - Commits
- rLTRN8731ae554c83: runner: allow arch not to be specified
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
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
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? |
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?