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

Unified Diff: client/utils/logging_utils_test.py

Issue 1233303003: Migrate and merge logging_utils from swarming_bot into client/utils. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Created 5 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
Index: client/utils/logging_utils_test.py
diff --git a/appengine/swarming/swarming_bot/logging_utils_test.py b/client/utils/logging_utils_test.py
similarity index 82%
rename from appengine/swarming/swarming_bot/logging_utils_test.py
rename to client/utils/logging_utils_test.py
index ac89ad3b4b4909f31b8e9af78a0aaefeef28e8ef..7fddb6366f1f50bd65cdb0dff03ce30cb9d19708 100755
--- a/appengine/swarming/swarming_bot/logging_utils_test.py
+++ b/client/utils/logging_utils_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-# Copyright 2014 The Swarming Authors. All rights reserved.
-# Use of this source code is governed by the Apache v2.0 license that can be
-# found in the LICENSE file.
+# Copyright 2015 The Swarming Authors. All rights reserved.
+# Use of this source code is governed under the Apache License, Version 2.0 that
+# can be found in the LICENSE file.
import logging
import os
@@ -11,12 +11,11 @@ import shutil
import unittest
import re
-# Import this first before manipulating sys.path to ensure it can load fine.
-import logging_utils
-
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, ROOT_DIR)
+from utils import logging_utils
+
import test_env
test_env.setup_test_env()

Powered by Google App Engine
This is Rietveld 408576698