Unverified Commit e19a0372 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

hvm: fix build by skipping non-deterministic snapshot tests (#477827)

parents 5b7025f8 74395246
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -13,13 +13,14 @@ rustPlatform.buildRustPackage rec {
    hash = "sha256-AD8mv47m4E6H8BVkxTExyhrR7VEnuB/KxnRl2puPnX4=";
  };

  # Insert empty line in expected output of rust panic in a test
  postPatch = ''
    sed -i '6G' tests/snapshots/run__file@empty.hvm.snap
  '';

  cargoHash = "sha256-nLcT+o6xrxPmQqK7FQpCqTlxOOUA1FzqRGQIypcq4fo=";

  # Skip snapshot tests with non-deterministic thread IDs and environment differences
  checkFlags = [
    "--skip=test_run_examples"
    "--skip=test_run_programs"
  ];

  meta = {
    description = "Massively parallel, optimal functional runtime in Rust";
    mainProgram = "hvm";