ec2test passes successfully without running any tests

Bug #591751 reported by Māris Fogels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Māris Fogels

Bug Description

ec2 passes without running any tests and without failing!

The error happens because the utilities/ec2 script imports _pythonpath.py from the local branch directory. Even if you run the 'ec2' command from via a symlink, if you run it in the local branch, it will actually pick up the *local* _pythonpath, and start running the older, local copy of ec2test: call it v1. When your branch is copied up to ec2, test_on_merge will check out a fresh copy of devel, and then merge your branch into it. That merge updates your Makefile to the latest version: v2. The ec2 runner then calls the v2 Makefile with your v1 remote.py: fail. The detailed test log will say SUCCESS with a single message:

  "make: Nothing to be done for `ec2_check'."

This bug affects people who have the 'ec2' command linked to 'lp-branches/devel/utilities/ec2', and then run 'ec2' in a branch that has not had the latest 'devel' merged in.

As a workaround, you can:

   a) merge 'devel' into your branch

   b) run the 'utilities/ec2' script from within the branch you are currently testing.

Related branches

Māris Fogels (mars)
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
milestone: none → 10.06
tags: added: qa-needstesting
Revision history for this message
Ursula Junque (ursinha) wrote :
Māris Fogels (mars)
tags: added: qa-ok
removed: qa-needstesting
Gary Poster (gary)
Changed in launchpad-foundations:
status: Fix Committed → 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.