Skip to content

Commit

Permalink
Added more tests for Robocopy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicchabant committed Apr 8, 2014
1 parent 1ead2bf commit f154ad1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions master/buildbot/test/unit/test_steps_mswin.py
Expand Up @@ -92,6 +92,18 @@ def test_exclude(self):
expected_args=['blah*', '/XF', '*.foo', '*.bar']
)

def test_exclude_files(self):
return self._run_simple_test(
'D:\source', 'E:\dest', files=['blah*'], exclude_files=['*.foo', '*.bar'],
expected_args=['blah*', '/XF', '*.foo', '*.bar']
)

def test_exclude_dirs(self):
return self._run_simple_test(
'D:\source', 'E:\dest', files=['blah*'], exclude_dirs=['foo', 'bar'],
expected_args=['blah*', '/XD', 'foo', 'bar']
)

@defer.inlineCallbacks
def test_codes(self):
# Codes that mean uneventful copies (including no copy at all).
Expand Down

0 comments on commit f154ad1

Please sign in to comment.