Permalink
Browse files

Bug 559890 - Run build-tools tests on checkin. test_clobberer.py shou…

…ld accept clobberURL and dbFile parameters. r=catlee

--HG--
extra : rebase_source : e43d4c16c17d1819403b7860903ea8567ae76932
  • Loading branch information...
1 parent 4e88277 commit 4c631128323cbebaf3d5a8bddd3ed5f079a4d8ed @rail rail committed Dec 2, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 clobberer/test_clobberer.py
@@ -372,5 +372,13 @@ def testReleaseClobberPrefixBuilder(self):
self.assert_('release-mozilla-central-linux_build' in data, data)
if __name__ == '__main__':
- import unittest
+ import unittest, sys
+ if len(sys.argv) == 3:
+ clobberURL = sys.argv[1]
+ dbFile = sys.argv[2]
+ del sys.argv[2]
+ del sys.argv[1]
+ elif len(sys.argv) > 1:
+ print "Usage: %s [clobberURL dbFile]" % sys.argv[0]
+ sys.exit(1)
unittest.main()

0 comments on commit 4c63112

Please sign in to comment.