Hide Forgot
Description of problem: 'bkr job-results' correctly exports files with xml header, but 'bkr job-submit' fails to accept these as valid input. When header is removed it works fine. This worked fine with previous versions: either header was not present or job-submit changed. IMO this is likely to be related to job merging which was submitted recently. Version-Release number of selected component (if applicable): 0.6.5 How reproducible: 100% Steps to Reproduce: 1. bkr job-results J:1 > j1.xml 2. bkr job-submit j1.xml Actual results: Traceback. Expected results: Successfully scheduled job. Additional info: Traceback: Traceback (most recent call last): File "/usr/bin/bkr", line 9, in <module> load_entry_point('bkr.client==0.6.5', 'console_scripts', 'bkr')() File "/usr/lib/python2.6/site-packages/bkr/client/main.py", line 55, in main return parser.run() File "/usr/lib/python2.6/site-packages/kobo/cli.py", line 282, in run cmd.run(*cmd_args, **cmd_kwargs) File "/usr/lib/python2.6/site-packages/bkr/client/commands/cmd_job_submit.py", line 91, in run doc = xml.dom.minidom.parseString("<dummy>%s</dummy>" % mystring) File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 1925, in parseString return expatbuilder.parseString(string) File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 942, in parseString return builder.parseString(string) File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 7
I see the issue. I broke this with the way I implemented --combine being able to take stdin.
pushed to gerrit for review