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
16 lines
365 B
Python
16 lines
365 B
Python
#!/usr/bin/python
|
|
|
|
from commontests import CommonTests
|
|
from gitfixtures import GitFixtures
|
|
from utils import run_git
|
|
|
|
class GitTests(CommonTests):
|
|
scm = 'git'
|
|
initial_clone_command = 'git clone'
|
|
update_cache_command = 'git fetch'
|
|
fixtures_class = GitFixtures
|
|
|
|
def default_version(self):
|
|
return self.timestamps(self.rev(2))
|
|
|