latest version obfuscates data in test scripts

Bug #1459983 reported by Martin Pitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ofono (Ubuntu)
New
Undecided
Tony Espy

Bug Description

https://launchpad.net/ubuntu/+source/ofono/1.12.bzr6896+15.10.20150521-0ubuntu1 changed the behaviour of the test scripts to obfuscate stuff. E. g. /usr/share/ofono/scripts/list-modems now says "LocationAreaCode = XXX" which is entirely useless.

These are test scripts, not something which you should ever call from a production program, so why was this change done? This is quite a dramatic change from upstream which makes these scripts incompatible with everything that uses it. It also broke e. g. python-dbusmock's tests which check that the mocked ofono is compatible with what the ofono package expects.

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in ofono (Ubuntu):
assignee: nobody → Tony Espy (awe)
tags: added: qa-daily-testing
Revision history for this message
Tony Espy (awe) wrote :

As mentioned in our discussion on IRC, this was changed because I got tired of asking end-users to self-obfuscate the output of list-modems.

Yes, I know it's contrary to upstream, but I cared more about the impact on end-users. I understand that this kind of thing could be accomplished by apport, but frankly apport is seldom used to report bugs on the phone, and is no help when debugging problems in real-time.

As for why I didn't catch the test failures, we used to run the dialer and messaging app autopilot tests for each ofono upload, however as they were quite unstable on the phone, I eventually gave up.

That said, based upon our discussion on IRC, I've reverted the meaning of the -p/--priv option for the command so that it causes the output to obfuscated, thus the test scripts should work again once this change has landed in the archive and PPA. I'm using the original bug to track, and thus this bug will be made a duplicate.

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.