[LNT] r308804 - Don't compare order_id either in round trip test

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 21 16:36:30 PDT 2017


Author: cmatthews
Date: Fri Jul 21 16:36:30 2017
New Revision: 308804

URL: http://llvm.org/viewvc/llvm-project?rev=308804&view=rev
Log:
Don't compare order_id either in round trip test

Modified:
    lnt/trunk/tests/server/ui/test_roundtrip.py

Modified: lnt/trunk/tests/server/ui/test_roundtrip.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/server/ui/test_roundtrip.py?rev=308804&r1=308803&r2=308804&view=diff
==============================================================================
--- lnt/trunk/tests/server/ui/test_roundtrip.py (original)
+++ lnt/trunk/tests/server/ui/test_roundtrip.py Fri Jul 21 16:36:30 2017
@@ -78,10 +78,13 @@ class JSONAPIRoundTripTester(unittest.Te
         values. Check all the top level keys, then check the run and machine dicts
         match and the tests data is the same.
         """
-        before_submit_run['run']['id'] = 1234567
-        before_submit_run['machine']['id'] = 1234567
-        after_submit_run['run']['id'] = 1234567
-        after_submit_run['machine']['id'] = 1234567
+        an_id = 1234567
+        before_submit_run['run']['id'] = an_id
+        before_submit_run['machine']['id'] = an_id
+        after_submit_run['run']['id'] = an_id
+        after_submit_run['machine']['id'] = an_id
+        before_submit_run['run']['order_id'] = an_id
+        after_submit_run['run']['order_id'] = an_id
 
         self.assertEqual(before_submit_run.keys(), after_submit_run.keys())
         # Machine and run will be dicts, compare them directly.




More information about the llvm-commits mailing list