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

Unified Diff: slave/skia_slave_scripts/utils/gs_utils_test.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « slave/skia_slave_scripts/utils/gs_utils.py ('k') | slave/skia_slave_scripts/utils/misc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: slave/skia_slave_scripts/utils/gs_utils_test.py
diff --git a/slave/skia_slave_scripts/utils/gs_utils_test.py b/slave/skia_slave_scripts/utils/gs_utils_test.py
index 0a226e1cea559ac6f522e9ebc26ed49ff737e01d..aa86c26b1a99c19cdf3224b2cc385d70b36eae40 100644
--- a/slave/skia_slave_scripts/utils/gs_utils_test.py
+++ b/slave/skia_slave_scripts/utils/gs_utils_test.py
@@ -6,27 +6,28 @@
"""Tests for module gs_utils."""
import __builtin__
-import misc
import os
import posixpath
-import shell_utils
import shutil
import sys
import tempfile
import time
# Appending to PYTHONPATH to find common.
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party',
- 'chromium_buildbot', 'scripts'))
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party',
- 'chromium_buildbot', 'scripts', 'common'))
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party',
- 'chromium_buildbot', 'site_config'))
-sys.path.append(os.path.join(misc.BUILDBOT_PATH, 'third_party',
- 'chromium_buildbot', 'third_party',
- 'twisted_10_2'))
-
-
+BUILDBOT_PATH = os.path.realpath(os.path.join(
+ os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir, os.pardir)
+)
+sys.path.append(os.path.join(BUILDBOT_PATH, 'common'))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
+ 'scripts'))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
+ 'scripts', 'common'))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
+ 'site_config'))
+sys.path.append(os.path.join(BUILDBOT_PATH, 'third_party', 'chromium_buildbot',
+ 'third_party', 'twisted_10_2'))
+
+from py.utils import shell_utils
from slave import slave_utils
import gs_utils
import unittest
« no previous file with comments | « slave/skia_slave_scripts/utils/gs_utils.py ('k') | slave/skia_slave_scripts/utils/misc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698