Skip to content

Commit

Permalink
skip 'stop slave' test on windows
Browse files Browse the repository at this point in the history
Windows does not have os.kill() function, which is used
in the tested code path. Skip the test for now.
  • Loading branch information
Elmir Jagudin committed Jul 12, 2013
1 parent 9cd7f9a commit ccdf00f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slave/buildslave/test/unit/test_scripts_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from twisted.trial import unittest
from buildslave.scripts import stop
from buildslave.test.util import misc
from buildslave.test.util import compat


class TestStopSlave(misc.FileIOMixin,
Expand Down Expand Up @@ -49,6 +50,7 @@ def test_no_pid_file(self):
self.assertRaises(stop.SlaveNotRunning,
stop.stopSlave, None, False)

@compat.skipUnlessPlatformIs("posix")
def test_successful_stop(self):
"""
test stopSlave() on a successful slave stop
Expand Down

0 comments on commit ccdf00f

Please sign in to comment.