Syntax errors in tests are not properly handled by the test suite

Bug #1204463 reported by Alexey Kopytov on 2013-07-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Kopytov
2.0
Medium
Alexey Kopytov
2.1
Medium
Alexey Kopytov

Bug Description

If bash throws a syntax error in a test script, the test suite marks the test passed. The reason is that $? in an exit trap will have a zero value in case of a syntax error. Which doesn't make any sense, but a workaround for this behavior should be implemented.

Related branches

lp:~akopytov/percona-xtrabackup/bug1204463-2.0
Merged into lp:percona-xtrabackup/2.0 at revision 570
Alexey Kopytov: Approve on 2013-07-25
lp:~akopytov/percona-xtrabackup/bug1204463-2.1
Merged into lp:percona-xtrabackup/2.1 at revision 637
Alexey Kopytov: Approve on 2013-07-25
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers