Bug 784841 - Part 11a: Normalize paths in tests (fix test failure); r=me
authorGregory Szorc <gps@mozilla.com>
Tue, 29 Jan 2013 08:55:35 -0800
changeset 130142 11658ed5bc17c0f61a31f19cec95dfde511fa0ad
parent 130141 385ef288dd0d092edc278cf09bbaa6356cbc3249
child 130143 c638b856a1713a68310b851c43a01cc43e57d8e1
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs784841
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 784841 - Part 11a: Normalize paths in tests (fix test failure); r=me
python/mozbuild/mozbuild/test/frontend/test_emitter.py
--- a/python/mozbuild/mozbuild/test/frontend/test_emitter.py
+++ b/python/mozbuild/mozbuild/test/frontend/test_emitter.py
@@ -100,16 +100,16 @@ class TestEmitterBasic(unittest.TestCase
         objs = list(emitter.emit(reader.read_topsrcdir()))
         self.assertEqual(len(objs), 3)
 
         self.assertIsInstance(objs[0], DirectoryTraversal)
         self.assertIsInstance(objs[1], ConfigFileSubstitution)
         self.assertIsInstance(objs[2], ConfigFileSubstitution)
 
         topobjdir = reader.config.topobjdir
-        self.assertEqual(objs[1].output_path,
+        self.assertEqual(os.path.normpath(objs[1].output_path),
             os.path.normpath(os.path.join(topobjdir, 'foo')))
-        self.assertEqual(objs[2].output_path,
+        self.assertEqual(os.path.normpath(objs[2].output_path),
             os.path.normpath(os.path.join(topobjdir, 'bar')))
 
 
 if __name__ == '__main__':
     main()