Mercurial > hg > carton
annotate tests/packageB/packageB.py @ 24:bb19d3dac4c5
fix tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 10 Jul 2011 18:17:54 -0700 |
parents | 29b36a390857 |
children |
rev | line source |
---|---|
6
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
3 """ |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
4 packageB |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 """ |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 import sys |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
8 from optparse import OptionParser |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
9 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
10 def main(args=sys.argv[1:]): |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
11 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 # parse command line arguments |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
13 usage = '%prog [options] ...' |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
14 parser = OptionParser(usage=usage, description=__doc__) |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
15 options, args = parser.parse_args(args) |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
16 |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
17 if __name__ == '__main__': |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
18 main() |
29b36a390857
add some bogus packages ill need for da test
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
19 |