| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 the V8 project authors. All rights reserved. |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 Releases(TEST_CONFIG, self).Run(args) | 1447 Releases(TEST_CONFIG, self).Run(args) |
| 1448 | 1448 |
| 1449 # Check expected output. | 1449 # Check expected output. |
| 1450 csv = ("4.2.71,4.2.71,1,5678,\r\n" | 1450 csv = ("4.2.71,4.2.71,1,5678,\r\n" |
| 1451 "3.22.3,candidates,345,4567:5677,\r\n" | 1451 "3.22.3,candidates,345,4567:5677,\r\n" |
| 1452 "3.21.2,3.21,123,,\r\n" | 1452 "3.21.2,3.21,123,,\r\n" |
| 1453 "3.3.1.1,3.3,234,,abc12\r\n") | 1453 "3.3.1.1,3.3,234,,abc12\r\n") |
| 1454 self.assertEquals(csv, FileToText(csv_output)) | 1454 self.assertEquals(csv, FileToText(csv_output)) |
| 1455 | 1455 |
| 1456 expected_json = {"chrome_releases":{ | 1456 expected_json = {"chrome_releases":{ |
| 1457 "canaries": [ | 1457 "canaries": [{ |
| 1458 { | 1458 "chrome_version": "2.2.2.2", |
| 1459 "chrome_version": "2.2.2.2", | 1459 "os": "win", |
| 1460 "os": "win", | 1460 "release_date": "04/09/15", |
| 1461 "release_date": "04/09/15", | 1461 "v8_version": "22.2.2.2", |
| 1462 "v8_version": "22.2.2.2", | 1462 "v8_version_hash": "v8_version_hash", |
| 1463 "v8_version_hash": "v8_version_hash", | 1463 "v8_previous_version": "11.1.1", |
| 1464 "v8_previous_version": "11.1.1.0", | 1464 "v8_previous_version_hash": "v8_previous_version_hash" |
| 1465 "v8_previous_version_hash": "v8_previous_version_hash
" | |
| 1466 }]}, | 1465 }]}, |
| 1467 "releases":[ | 1466 "releases":[ |
| 1468 { | 1467 { |
| 1469 "revision": "1", | 1468 "revision": "1", |
| 1470 "revision_git": "hash_456", | 1469 "revision_git": "hash_456", |
| 1471 "master_position": "456", | 1470 "master_position": "456", |
| 1472 "master_hash": "master_456", | 1471 "master_hash": "master_456", |
| 1473 "patches_merged": "", | 1472 "patches_merged": "", |
| 1474 "version": "4.2.71", | 1473 "version": "4.2.71", |
| 1475 "chromium_revision": "5678", | 1474 "chromium_revision": "5678", |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 | 1542 |
| 1544 Review URL: https://codereview.chromium.org/83173002 | 1543 Review URL: https://codereview.chromium.org/83173002 |
| 1545 | 1544 |
| 1546 ------------------------------------------------------------------------""") | 1545 ------------------------------------------------------------------------""") |
| 1547 self.assertEquals( | 1546 self.assertEquals( |
| 1548 """Prepare push to trunk. Now working on version 3.23.11. | 1547 """Prepare push to trunk. Now working on version 3.23.11. |
| 1549 | 1548 |
| 1550 R=danno@chromium.org | 1549 R=danno@chromium.org |
| 1551 | 1550 |
| 1552 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1551 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
| OLD | NEW |