Commit 35b29bd2 authored by Manuel Günther's avatar Manuel Günther

Next trial to fix the nightlies.

parent a29e74a9
......@@ -132,7 +132,7 @@ class GridTKTest(unittest.TestCase):
self.assertTrue(os.path.isfile(out_file))
self.assertTrue(os.path.isfile(err_file))
self.assertEqual(open(out_file).read().rstrip(), 'This is a text message to std-out')
self.assertEqual(open(err_file).read().rstrip(), 'This is a text message to std-err')
self.assertEqual(open(err_file).read().split('\n')[0], 'This is a text message to std-err')
# resubmit all jobs
jman.main(['./bin/jman', '--local', '--database', self.database, 'resubmit', '--running-jobs'])
......@@ -152,7 +152,7 @@ class GridTKTest(unittest.TestCase):
self.assertTrue(os.path.isfile(out_file))
self.assertTrue(os.path.isfile(err_file))
self.assertEqual(open(out_file).read().rstrip(), 'This is a text message to std-out')
self.assertEqual(open(err_file).read().rstrip(), 'This is a text message to std-err')
self.assertEqual(open(err_file).read().split('\n')[0], 'This is a text message to std-err')
# check that exactly four output and four error files have been created
files = os.listdir(self.log_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment