Updates:
Summary: Broken XML output file is created when no test case matched given
--include/--exclude or --test/--suite
Comment #5 on issue 923 by pekka.klarck: Broken XML output file is created
when no test case matched given --include/--exclude or --test/--suite
http://code.google.com/p/robotframework/issues/detail?id=923
There are some possible workarounds to this problem:
1) Use new `--runemptysuite` option to allow empty suite to be run. As a
result you'll get a valid XML output file.
2) Remove the output file if execution fails. The return code you'll get in
this case is 252.