140 |
|
|
141 |
if __name__ == '__main__': |
if __name__ == '__main__': |
142 |
if getMPISizeWorld() == 1: |
if getMPISizeWorld() == 1: |
143 |
suite = unittest.TestSuite() |
if os.system('ppmtompeg')/256==127: #Command not found |
144 |
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestGenerateMovie)) |
print "run_movie_with_lazy_evaluation.py was not executed because more than one processor is in use." |
145 |
s=unittest.TextTestRunner(verbosity=2).run(suite) |
else: |
146 |
|
suite = unittest.TestSuite() |
147 |
|
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestGenerateMovie)) |
148 |
|
s=unittest.TextTestRunner(verbosity=2).run(suite) |
149 |
if not s.wasSuccessful(): sys.exit(1) |
if not s.wasSuccessful(): sys.exit(1) |
150 |
else: |
else: |
151 |
print "run_movie_with_lazy_evaluation.py is not executed as more than one processor is used." |
print "run_movie_with_lazy_evaluation.py was not executed because more than one processor is in use." |
152 |
|
|