Closed Bug 692312 Opened 13 years ago Closed 13 years ago

mozharness tests should be runnable standalone python files

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

Details

(Whiteboard: [mozharness])

Attachments

(1 file)

currently unit.sh is the only way to run the tests and invoking the python files directly does nothing.  Instead, calling unittest.main() should be used if __name__ == '__main__' to run the tests
Attachment #565054 - Flags: review?(aki)
Comment on attachment 565054 [details] [diff] [review]
make the files runnable standalone

These look good, and show one of the many gaps in my python knowledge.

We're missing mozharness/test/networked/* (even though I want to get rid of these at some point).  And we still assume we're cd'ed into mozharness/. as you pointed out in #ateam.  But neither one of those things block landing this specific patch.

Feel free to land this at any point; I'll sync up to my dev github repo when I finally clear enough time to start coding again.
Attachment #565054 - Flags: review?(aki) → review+
pushed: http://hg.mozilla.org/build/mozharness/rev/518b650072a9
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: Other → Mozharness
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: