public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexey Zapparov" <alexey@zapparov.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/files/, dev-util/fnm/
Date: Mon, 27 Jun 2022 03:38:21 +0000 (UTC)	[thread overview]
Message-ID: <1656301093.09f6cd199e70b42672694a0125005d956b753f72.alexey@gentoo> (raw)

commit:     09f6cd199e70b42672694a0125005d956b753f72
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Mon Jun 27 03:34:50 2022 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Mon Jun 27 03:38:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=09f6cd19

dev-util/fnm: rev 1.31.0-r2

Skip npm installation tests: https://github.com/Schniz/fnm/issues/755

Closes: https://bugs.gentoo.org/854366
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>

 .../fnm-1.31.0-skip-npm-installing-tests.patch     | 29 ++++++++++++++++++++++
 ...=> fnm-1.31.0-skip-windows-related-tests.patch} |  0
 .../{fnm-1.31.0-r1.ebuild => fnm-1.31.0-r2.ebuild} |  8 +++++-
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/dev-util/fnm/files/fnm-1.31.0-skip-npm-installing-tests.patch b/dev-util/fnm/files/fnm-1.31.0-skip-npm-installing-tests.patch
new file mode 100644
index 000000000..4a03b6638
--- /dev/null
+++ b/dev-util/fnm/files/fnm-1.31.0-skip-npm-installing-tests.patch
@@ -0,0 +1,29 @@
+--- a/src/downloader.rs
++++ b/src/downloader.rs
+@@ -149,26 +149,6 @@ mod tests {
+         assert_eq!(result.trim(), "v12.0.0");
+     }
+ 
+-    #[test_log::test]
+-    fn test_installing_npm() {
+-        let installations_dir = tempdir().unwrap();
+-        let npm_path = install_in(installations_dir.path()).join(if cfg!(windows) {
+-            "npm.cmd"
+-        } else {
+-            "npm"
+-        });
+-
+-        let stdout = duct::cmd(npm_path.to_str().unwrap(), vec!["--version"])
+-            .stdout_capture()
+-            .run()
+-            .expect("Can't run npm")
+-            .stdout;
+-
+-        let result = String::from_utf8(stdout).expect("Can't read npm output");
+-
+-        assert_eq!(result.trim(), "6.9.0");
+-    }
+-
+     fn install_in(path: &Path) -> PathBuf {
+         let version = Version::parse("12.0.0").unwrap();
+         let arch = Arch::X64;

diff --git a/dev-util/fnm/files/fnm-1.31.0-tests.patch b/dev-util/fnm/files/fnm-1.31.0-skip-windows-related-tests.patch
similarity index 100%
rename from dev-util/fnm/files/fnm-1.31.0-tests.patch
rename to dev-util/fnm/files/fnm-1.31.0-skip-windows-related-tests.patch

diff --git a/dev-util/fnm/fnm-1.31.0-r1.ebuild b/dev-util/fnm/fnm-1.31.0-r2.ebuild
similarity index 97%
rename from dev-util/fnm/fnm-1.31.0-r1.ebuild
rename to dev-util/fnm/fnm-1.31.0-r2.ebuild
index 3df8ebf01..d09158fa2 100644
--- a/dev-util/fnm/fnm-1.31.0-r1.ebuild
+++ b/dev-util/fnm/fnm-1.31.0-r2.ebuild
@@ -388,8 +388,14 @@ QA_FLAGS_IGNORED="usr/bin/${PN}"
 
 src_prepare() {
 	eapply "${FILESDIR}/${P}-cargo.patch"
-	eapply "${FILESDIR}/${P}-tests.patch"
 	sed -i "s|@@REQWEST_PATH@@|\"${WORKDIR}/reqwest-${REQWEST_COMMIT}\"|g" "${S}/Cargo.toml" || die "Cannot patch reqwuest cargo dependency"
+
+	# Skip testing against PowerShell and WinCmd
+	eapply "${FILESDIR}/${P}-skip-windows-related-tests.patch"
+
+	# https://bugs.gentoo.org/854366
+	eapply "${FILESDIR}/${P}-skip-npm-installing-tests.patch"
+
 	default
 }
 


             reply	other threads:[~2022-06-27  3:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27  3:38 Alexey Zapparov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-19 14:44 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/files/, dev-util/fnm/ Takuya Wakazono
2024-08-18  3:45 Alexey Zapparov
2024-05-13 23:05 [gentoo-commits] repo/proj/guru:master commit in: dev-util/fnm/, dev-util/fnm/files/ Julien Roy
2024-05-13 23:04 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fnm/files/, dev-util/fnm/ Julien Roy
2024-02-11 10:16 Takuya Wakazono
2024-02-11 10:16 Takuya Wakazono
2022-12-16  5:30 Alexey Zapparov
2022-06-24 20:08 Alexey Zapparov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1656301093.09f6cd199e70b42672694a0125005d956b753f72.alexey@gentoo \
    --to=alexey@zapparov.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox