[arch-commits] Commit in nvchecker/trunk (PKGBUILD update-tests-2.diff)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sun Aug 23 07:12:15 UTC 2020
Date: Sunday, August 23, 2020 @ 07:12:14
Author: yan12125
Revision: 686920
nvchecker: backport another commit to fix tests
Added:
nvchecker/trunk/update-tests-2.diff
Modified:
nvchecker/trunk/PKGBUILD
---------------------+
PKGBUILD | 8 ++++++--
update-tests-2.diff | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-23 07:12:09 UTC (rev 686919)
+++ PKGBUILD 2020-08-23 07:12:14 UTC (rev 686920)
@@ -18,13 +18,17 @@
'subversion: for VCS sources'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
- "$pkgname-update-tests-1.patch::https://github.com/lilydjwg/nvchecker/commit/44687da8a6f4e3bdeb18baf1132518b17bddd484.patch")
+ "$pkgname-update-tests-1.patch::https://github.com/lilydjwg/nvchecker/commit/44687da8a6f4e3bdeb18baf1132518b17bddd484.patch"
+ "update-tests-2.diff")
sha512sums=('6243960747de33bd004bb3377109699f702bb64d65320e0c219f540546f33ace2d87be4eb2b18d988874eb98812176488fa5c98aec6f93cd218b8549b38482d0'
- '24d14870de13bbb2beec128854cfb04a65e3fee7720f62856c4c20afadf83975b0d3e26888a96f3663218556ddd0e173831b4c9c89305cacf8f94e531025d0e0')
+ '24d14870de13bbb2beec128854cfb04a65e3fee7720f62856c4c20afadf83975b0d3e26888a96f3663218556ddd0e173831b4c9c89305cacf8f94e531025d0e0'
+ 'c9898cef468463f8c1374c44e65e05988d16b9051fc6ec9d06e7263d21069225bef0f7ce2bfff5600bcef91fac6babe20a5da7a6c9169c5d386ba42900317b74')
prepare() {
cd nvchecker-$pkgver
patch -Np1 -i ../$pkgname-update-tests-1.patch
+ # Backported from https://github.com/lilydjwg/nvchecker/commit/649799389f97d7f80cb9ba8f3fb3d9742bb7f174
+ patch -Np1 -i ../update-tests-2.diff
}
build() {
Added: update-tests-2.diff
===================================================================
--- update-tests-2.diff (rev 0)
+++ update-tests-2.diff 2020-08-23 07:12:14 UTC (rev 686920)
@@ -0,0 +1,17 @@
+diff --git a/tests/test_vcs.py b/tests/test_vcs.py
+index 4e8061e..c9cf71e 100644
+--- a/tests/test_vcs.py
++++ b/tests/test_vcs.py
+@@ -13,12 +13,6 @@ async def test_git(get_version):
+ os.path.exists("example") or os.mkdir("example")
+ assert await get_version("example", {"vcs": "git+https://github.com/harry-sanabria/ReleaseTestRepo.git"}) == "1.1.2b3cdf6134b07ae6ac77f11b586dc1ae6d1521db"
+
+- at pytest.mark.skipif(shutil.which("hg") is None,
+- reason="requires hg command")
+-async def test_mercurial(get_version):
+- os.path.exists("example") or os.mkdir("example")
+- assert await get_version("example", {"vcs": "hg+https://bitbucket.org/pil0t/testrepo"}) == "1.1.84679e29c7d9"
+-
+ @pytest.mark.skipif(shutil.which("git") is None,
+ reason="requires git command")
+ async def test_git_max_tag(get_version):
More information about the arch-commits
mailing list