logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch (740B)


  1. From 7febf73579ce693ac60ecb88f93627a8bfe0e26f Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Sat, 14 Oct 2023 19:33:19 +0200
  4. Subject: [PATCH 1/2] t/30-get.t: Skip on NO_NETWORK_TESTING
  5. ---
  6. t/30-get.t | 5 +++++
  7. 1 file changed, 5 insertions(+)
  8. diff --git a/t/30-get.t b/t/30-get.t
  9. index c638953..1afec30 100644
  10. --- a/t/30-get.t
  11. +++ b/t/30-get.t
  12. @@ -8,6 +8,11 @@ use Test::Warnings;
  13. use Net::CVE;
  14. +if ($ENV{NO_NETWORK_TESTING}) {
  15. + print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n";
  16. + exit 0;
  17. + }
  18. +
  19. ok (my $c1 = Net::CVE->new, "New reporter");
  20. ok ($c1->get ("CVE-2022-26928"), "Read report with prefix");
  21. ok (my $d1 = $c1->data, "Generate data");
  22. --
  23. 2.41.0