forked from pool/obs-service-tar_scm
Mon Feb 13 15:52:19 GMT 2012 - aspiers@suse.com Add test suite and fix two bugs it found: 1. --subdir was not working 2. --scm bzr was not working FWIW it also works on SLE11 now. I will issue a separate request for my enhancements to tar_scm, since they are much more intrusive (but have about 90% test coverage). OBS-URL: https://build.opensuse.org/request/show/105040 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=32
15 lines
360 B
Python
15 lines
360 B
Python
#!/usr/bin/python
|
|
|
|
from commontests import CommonTests
|
|
from svnfixtures import SvnFixtures
|
|
from utils import run_svn
|
|
|
|
class SvnTests(CommonTests):
|
|
scm = 'svn'
|
|
initial_clone_command = 'svn (co|checkout) '
|
|
update_cache_command = 'svn up(date)?'
|
|
fixtures_class = SvnFixtures
|
|
|
|
def default_version(self):
|
|
return self.rev(2)
|