"allow-stderr" tests that produce stderr output always pass
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
Steps to reproduce:
1. Write a test that produces stderr output, but then returns exit status 1.
2. Run adt-run against the test.
Expected results: test failure.
Actual results: test pass.
This seems to be due to the following code ("rc" contains the exit status of the test run).
if stab.st_size != 0:
l = open(se_
l = l.rstrip('\n \t\r')
if 'allow-stderr' not in t.restriction_
elif rc != 0:
else:
Related branches
tags: | added: patch |
Patch attached.