Syntax errors in tests are not properly handled by the test suite
Bug #1204463 reported by
Alexey Kopytov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
Medium
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
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
- Alexey Kopytov (community): Approve
-
Diff: 15 lines (+4/-1)1 file modifiedtest/run.sh (+4/-1)
lp:~akopytov/percona-xtrabackup/bug1204463-2.1
- Alexey Kopytov (community): Approve
-
Diff: 15 lines (+4/-1)1 file modifiedtest/run.sh (+4/-1)
To post a comment you must log in.
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXB-653