Script tests should preserve filename and line number for runtime error reporting
Bug #667518 reported by
Martin Packman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
The shell-like tests framework currently reports the filename and line number for errors in parsing the script, but does not when running the script. If the parser's file_name parameter and the cmd_line variable (which is currently unused) were recorded in the commands list, it would be possible to give more informative messages for missing commands and such like.
Bug spun off from merge proposal:
<https:/
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: check-for-breezy |
To post a comment you must log in.
One missing bit to address this bug was to acquire the line number from the caller when run_script() is used.
See the fix for bug#897718 which includes a test that use a reliable way to get this info.