diff --git a/tests/test_patch.py b/tests/test_patch.py index 0a3e333..a28a17a 100644 --- a/tests/test_patch.py +++ b/tests/test_patch.py @@ -36,3 +36,4 @@ def test_patch(tmpdir): kas.kas(['shell', 'test.yml', '-c', 'true']) for f in ['kas/tests/test_patch/hello.sh', 'hello/hello.sh']: assert os.stat(f)[stat.ST_MODE] & stat.S_IXUSR + kas.kas(['shell', 'test.yml', '-c', 'true']) diff --git a/tests/test_patch/patches/hello-branch/003.patch b/tests/test_patch/patches/hello-branch/003.patch new file mode 120000 index 0000000..aeae3b8 --- /dev/null +++ b/tests/test_patch/patches/hello-branch/003.patch @@ -0,0 +1 @@ +../hello/quilt/003.patch \ No newline at end of file diff --git a/tests/test_patch/patches/kas-branch/003.patch b/tests/test_patch/patches/kas-branch/003.patch new file mode 120000 index 0000000..781a072 --- /dev/null +++ b/tests/test_patch/patches/kas-branch/003.patch @@ -0,0 +1 @@ +../kas/quilt/003.patch \ No newline at end of file diff --git a/tests/test_patch/test.yml b/tests/test_patch/test.yml index b7008e6..bba55af 100644 --- a/tests/test_patch/test.yml +++ b/tests/test_patch/test.yml @@ -15,6 +15,14 @@ repos: repo: this path: patches/kas/quilt/ + kas-branch: + url: https://github.com/siemens/kas.git + refspec: master + patches: + plain: + repo: this + path: patches/kas-branch/003.patch + hello: url: https://www.mercurial-scm.org/repo/hello/ refspec: 82e55d328c8c @@ -26,3 +34,12 @@ repos: quilt: repo: this path: patches/hello/quilt/ + + hello-branch: + url: https://www.mercurial-scm.org/repo/hello/ + refspec: default + type: hg + patches: + plain: + repo: this + path: patches/hello-branch/003.patch