diff options
| -rw-r--r-- | bitbake/lib/toaster/tests/commands/test_runbuilds.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/tests/commands/test_runbuilds.py b/bitbake/lib/toaster/tests/commands/test_runbuilds.py index 738d36e98d..849c227edc 100644 --- a/bitbake/lib/toaster/tests/commands/test_runbuilds.py +++ b/bitbake/lib/toaster/tests/commands/test_runbuilds.py | |||
| @@ -22,8 +22,6 @@ import signal | |||
| 22 | import logging | 22 | import logging |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | logger = logging.getLogger("toaster") | ||
| 26 | |||
| 27 | class KillRunbuilds(threading.Thread): | 25 | class KillRunbuilds(threading.Thread): |
| 28 | """ Kill the runbuilds process after an amount of time """ | 26 | """ Kill the runbuilds process after an amount of time """ |
| 29 | def __init__(self, *args, **kwargs): | 27 | def __init__(self, *args, **kwargs): |
| @@ -43,7 +41,7 @@ class KillRunbuilds(threading.Thread): | |||
| 43 | pid = pidfile.read() | 41 | pid = pidfile.read() |
| 44 | os.kill(int(pid), signal.SIGTERM) | 42 | os.kill(int(pid), signal.SIGTERM) |
| 45 | except ProcessLookupError: | 43 | except ProcessLookupError: |
| 46 | logger.warning("Runbuilds not running or already killed") | 44 | logging.warning("Runbuilds not running or already killed") |
| 47 | 45 | ||
| 48 | 46 | ||
| 49 | class TestCommands(TestCase): | 47 | class TestCommands(TestCase): |
