phablet-test-run will fail if the python3 import prints something to std

Bug #1327325 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
address-book-app (Ubuntu)
Fix Released
Undecided
Unassigned
phablet-tools (Ubuntu)
Fix Released
High
Dimitri John Ledkov
ubuntu-system-settings (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Currently, phablet-test-run tries to import the tests using python3 and if it fails, it falls back to py2.

The problem is that the check for py3 checks any output returned by the command. So even if it's not an import error, it will think that py3 failed.

This is affecting the address-book-app, which started logging a deprecation warning. The warning comes from the toolkit, so this might affect many other apps soon.

It would be better if instead of just checking the output, phablet-test-run checks if "ImportError" appears on the output.

Tags: ci elopio qa-new

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-system-settings - 0.3+14.10.20140711-0ubuntu1

---------------
ubuntu-system-settings (0.3+14.10.20140711-0ubuntu1) utopic; urgency=low

  [ Andrea Cimitan ]
  * Workaround for OSK input area (LP: #1334429)

  [ Sebastien Bacher ]
  * battery, draw the x axis labels (LP: #1289460)

  [ Iain Lane ]
  * [time-date] Ask for properties over D-Bus even when the object is
    not considered valued (due to the service timing out), to cause it
    to be activated.

  [ Leo Arias ]
  * Ported the autopilot package to python3. (LP: #1327325)
 -- Ubuntu daily release <email address hidden> Fri, 11 Jul 2014 08:55:46 +0000

Changed in ubuntu-system-settings (Ubuntu):
status: New → Fix Released
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Well, things should stop importing ubuntuuitoolkit.emulators which prints deprecation warnings.
A fix to ignore uuitk warnings are python3/2 detection time is proposed for phablet-test-run.

Changed in phablet-tools (Ubuntu):
assignee: Francis Ginther (fginther) → Dimitri John Ledkov (xnox)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Sorry for the delay in landing this. Uploaded into proposed.

Changed in phablet-tools (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Leo Arias (elopio) wrote :

Thanks!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

phablet-tools (1.1+14.10.20140703-0ubuntu2) utopic; urgency=medium

  [ Dimitri John Ledkov ]
  * Upload patch from June the 6th.

  [ Francis Ginther ]
  * In phablet-test-run, check the return code when attempting to import
    tests with python3 instead of just looking for text output. Log
    messages generated on import will cause the import check to fail when
    it should not.
 -- Dimitri John Ledkov <email address hidden> Mon, 14 Jul 2014 18:07:36 +0100

Changed in phablet-tools (Ubuntu):
status: Fix Committed → Fix Released
Changed in address-book-app (Ubuntu):
status: New → Fix Released
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.