Bug 1317970 - Move mozsystemmonitor tests to a consistent directory structure, r?chmanchester draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 17 Nov 2016 16:36:13 -0500
changeset 442116 9c4267f9714ee7d911e8d4c34ce1a82ef6575548
parent 442068 0534254e9a40b4bade2577c631fe4cfa0b5db41d
child 442117 6acee041bc656d743ff94e5bd2d5c9e5f15d4119
push id36588
push userahalberstadt@mozilla.com
push dateMon, 21 Nov 2016 19:39:30 +0000
reviewerschmanchester
bugs1317970
milestone53.0a1
Bug 1317970 - Move mozsystemmonitor tests to a consistent directory structure, r?chmanchester The mozsystemmonitor test is under mozsystemmonitor/mozsystemmonitor/test instead of mozsystemmonitor/tests like all the other mozbase modules. MozReview-Commit-ID: AIs5mza8Rn6
testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/__init__.py
testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/test_resource_monitor.py
testing/mozbase/mozsystemmonitor/tests/manifest.ini
testing/mozbase/mozsystemmonitor/tests/test_resource_monitor.py
deleted file mode 100644
new file mode 100644
--- /dev/null
+++ b/testing/mozbase/mozsystemmonitor/tests/manifest.ini
@@ -0,0 +1,1 @@
+[test_resource_monitor.py]
rename from testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/test_resource_monitor.py
rename to testing/mozbase/mozsystemmonitor/tests/test_resource_monitor.py
--- a/testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/test_resource_monitor.py
+++ b/testing/mozbase/mozsystemmonitor/tests/test_resource_monitor.py
@@ -173,8 +173,12 @@ class TestResourceMonitor(unittest.TestC
         self.assertEqual(d['version'], 2)
         self.assertEqual(len(d['events']), 2)
         self.assertEqual(len(d['phases']), 2)
         self.assertIn('system', d)
         self.assertIsInstance(d['system'], dict)
         self.assertIsInstance(d['overall'], dict)
         self.assertIn('duration', d['overall'])
         self.assertIn('cpu_times', d['overall'])
+
+
+if __name__ == '__main__':
+    unittest.main()