Script tests should preserve filename and line number for runtime error reporting

Bug #667518 reported by Martin Packman
12
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://code.launchpad.net/~gz/bzr/script_test_missing_command_error/+merge/38875>

Martin Packman (gz)
Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Vincent Ladeuil (vila) wrote :

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.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.