| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 | 8 |
| 9 # swarming_bot/ | 9 # swarming_bot/ |
| 10 BOT_DIR = os.path.dirname( | 10 BOT_DIR = os.path.dirname( |
| 11 os.path.dirname(os.path.realpath(os.path.abspath(__file__)))) | 11 os.path.dirname(os.path.realpath(os.path.abspath(__file__)))) |
| 12 | 12 |
| 13 | 13 |
| 14 def setup_test_env(): | 14 def setup_test_env(): |
| 15 """Sets up the environment for bot tests.""" | 15 """Sets up the environment for bot tests.""" |
| 16 sys.path.insert(0, BOT_DIR) | 16 sys.path.insert(0, BOT_DIR) |
| 17 import test_env_bot | 17 import test_env_bot |
| 18 test_env_bot.setup_test_env() | 18 test_env_bot.setup_test_env() |
| OLD | NEW |