Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py

Issue 1783073002: Run auto-formatter on files in webkitpy/layout_tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ran yapf -i --style '{based_on_style: pep8, column_limit: 132}' then did manual fix-up Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
index 80ad5b215220b45f5423ab1222f3825b8552baaa..ba9bf2f2c1e4a69b9d3421b9bcbe66716be45890 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py
@@ -26,7 +26,6 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
"""Unit tests for manager.py."""
import sys
@@ -108,13 +107,13 @@ class ManagerTest(unittest.TestCase):
self.assertEqual(self.http_stopped, False)
self.assertEqual(self.websocket_stopped, False)
-
def test_look_for_new_crash_logs(self):
def get_manager():
host = MockHost()
port = host.port_factory.get('test-mac-mac10.10')
manager = Manager(port, options=MockOptions(test_list=None, http=True, max_locked_shards=1), printer=FakePrinter())
return manager
+
host = MockHost()
port = host.port_factory.get('test-mac-mac10.10')
tests = ['failures/expected/crash.html']
@@ -134,9 +133,11 @@ class ManagerTest(unittest.TestCase):
def get_manager():
manager = Manager(port, options=MockOptions(max_locked_shards=1), printer=FakePrinter())
return manager
+
self._make_fake_test_result(port.host, '/tmp/layout-test-results')
self.assertTrue(port.host.filesystem.exists('/tmp/layout-test-results'))
- timestamp = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime(port.host.filesystem.mtime('/tmp/layout-test-results/results.html')))
+ timestamp = time.strftime("%Y-%m-%d-%H-%M-%S",
+ time.localtime(port.host.filesystem.mtime('/tmp/layout-test-results/results.html')))
archived_file_name = '/tmp/layout-test-results' + '_' + timestamp
manager = get_manager()
manager._rename_results_folder()
@@ -150,6 +151,7 @@ class ManagerTest(unittest.TestCase):
def get_manager():
manager = Manager(port, options=MockOptions(max_locked_shards=1), printer=FakePrinter())
return manager
+
self._make_fake_test_result(port.host, '/tmp/layout-test-results')
self.assertTrue(port.host.filesystem.exists('/tmp/layout-test-results'))
manager = get_manager()
@@ -163,6 +165,7 @@ class ManagerTest(unittest.TestCase):
def get_manager():
manager = Manager(port, options=MockOptions(max_locked_shards=1), printer=FakePrinter())
return manager
+
for x in range(1, 31):
dir_name = '/tmp/layout-test-results' + '_' + str(x)
self._make_fake_test_result(port.host, dir_name)

Powered by Google App Engine
This is Rietveld 408576698