Unverified Commit 1c55bd15 authored by Seth Flynn's avatar Seth Flynn
Browse files

ntpd-rs: skip tests depending on timestamped certs

These cause consistent test failures when the bundled certs happen to
expire. Upstream's response (so far) is to simply bump the expiration
date of these certs by another year, so it's probably best to just avoid
these until a more permanent solution is found
parent 68846ccb
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -29,6 +29,28 @@ rustPlatform.buildRustPackage (finalAttrs: {
    installShellFiles
  ];

  # These fail based on timestamp issues with bundled certificates
  # See https://github.com/NixOS/nixpkgs/issues/497682 & https://github.com/pendulum-project/ntpd-rs/pull/2133
  checkFlags = [
    "--skip=daemon::keyexchange::tests::key_exchange_connection_limiter"
    "--skip=daemon::keyexchange::tests::key_exchange_roundtrip_with_port_server"
    "--skip=daemon::ntp_source::tests::test_deny_stops_poll"
    "--skip=daemon::ntp_source::tests::test_timeroundtrip"
    "--skip=daemon::server::tests::test_server_serves"
    "--skip=nts::tests::test_key_exchange_roundtrip_no_cookies"
    "--skip=nts::tests::test_keyexchange_fixed_key_no_permission"
    "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key"
    "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key_keep_alive"
    "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key_no_permit"
    "--skip=nts::tests::test_keyexchange_roundtrip_no_proto_overlap"
    "--skip=nts::tests::test_keyexchange_roundtrip_no_upgrade_possible"
    "--skip=nts::tests::test_keyexchange_roundtrip_supports"
    "--skip=nts::tests::test_keyexchange_roundtrip_upgrading"
    "--skip=nts::tests::test_keyexchange_roundtrip_v4"
    "--skip=nts::tests::test_keyexchange_roundtrip_v5"
    "--skip=nts::tests::test_keyexchange_supports_no_permission"
  ];

  postPatch = ''
    substituteInPlace utils/generate-man.sh \
      --replace-fail 'utils/pandoc.sh' 'pandoc'