Closed Bug 576026 Opened 14 years ago Closed 14 years ago

runtests.py.in is an interpolated file and shouldn't be

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: k0scist, Assigned: ewong)

References

Details

(Whiteboard: [good first bug])

Attachments

(1 file, 2 obsolete files)

http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py.in is interpolated.  However, there are no actual interpolation tokens there!  So it is pointless to interpret.  The only thing that happens is that the comments are wiped and CPU cycles are used.
Just nuking this rule and renaming the file should do the trick:
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/Makefile.in#119
Whiteboard: [good first bug]
(In reply to comment #1)
> Just nuking this rule and renaming the file should do the trick:
> http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/Makefile.in#119

Well actually we'll need to NSINSTALL the .js for this, no?
If you meant the .py file, then no, it's already listed in that _SERV_FILES variable up above, which gets installed in a rule in that Makefile.
Assignee: nobody → ewong
Status: NEW → ASSIGNED
Attachment #463753 - Flags: review? → review?(ted.mielczarek)
Comment on attachment 463753 [details] [diff] [review]
Changed runtests.py.in to runtests.py and removed lines from Makefile.in

You have an extraneous change in browser/locales in this patch.

The Makefile change looks good, but you need to remove runtests.py from GARBAGE as well.
Attachment #463753 - Flags: review?(ted.mielczarek) → review-
Removed extraneous cruft from patch.  Removed runtests.py from GARBAGE.
Renamed runtests.py.in to runtests.py.
Attachment #463753 - Attachment is obsolete: true
Attachment #463796 - Flags: review?
Attachment #463796 - Flags: review? → review?(ted.mielczarek)
Attachment #463796 - Flags: review?(ted.mielczarek) → review+
Hmm, does this need approval; it looks like the approval-flags never hit this product/component
a=me
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/2d57f5901aa2

In the future, please follow these suggestions for using checkin-needed:
http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed

It's a pain to have to manually set the user and checkin comment when landing
your patch.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Sounds like this broke running mochitest from the objdir on systems with symlinks, in a similar manner to bug 525047 comment 28. (Python uses the target of the symlink as the directory to use in sys.path for loading modules.)
This causes mochitests to fail at the start as shown below, on
x86_64-Linux (Ubuntu 10.04).  Backing it out by hand gives a working
mochitest.

Could this please be either fixed or backed out?  Right now isn't a
good time for mochitests to be broken.


$ DISPLAY=:3.0 make -C ff-opt mochitest-plain
make: Entering directory `/space2/sewardj/MOZ/MC-23-08-2010/ff-opt'
rm -f ./mochitest-plain.log && /usr/bin/python2.6 _tests/testing/mochitest/runtests.py --autorun --close-when-done --console-level=INFO --log-file=./mochitest-plain.log --file-level=INFO --symbols-path=./dist/crashreporter-symbols  
Traceback (most recent call last):
  File "_tests/testing/mochitest/runtests.py", line 55, in <module>
    from automation import Automation
ImportError: No module named automation
make: *** [mochitest-plain] Error 1
make: Leaving directory `/space2/sewardj/MOZ/MC-23-08-2010/ff-opt'
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I wonder if this (hangs, focus weirdness) is related to bug 583699.
That concerns the exact same test case, and Valgrind found an
uninitialised value use in it.
(In reply to comment #12)
Darn.  Wrong bug.  Ignore.  Sorry.
I'm going to back this out in a moment.
Status: REOPENED → ASSIGNED
Attachment #463796 - Attachment is obsolete: true
Attachment #473463 - Flags: review?(ted.mielczarek)
Attachment #473463 - Flags: review?(ted.mielczarek) → review?(khuey)
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/52c2f34cd686
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Blocks: 614863
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: