From 97f63d093af135d2b30d8fdbec28119dc6e70728 Mon Sep 17 00:00:00 2001 From: georgeee Date: Fri, 23 Aug 2024 17:46:12 +0000 Subject: [PATCH] Supply runtime config to command line test --- nix/ocaml.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/ocaml.nix b/nix/ocaml.nix index d1ba6a125ad..057b485e1ea 100644 --- a/nix/ocaml.nix +++ b/nix/ocaml.nix @@ -137,6 +137,8 @@ let granularBase = dune-nix.outputs' commonOverrides ./.. allDeps info packageHasSrcApp; vmOverlays = let + commit = inputs.self.sourceInfo.rev or ""; + commitShort = builtins.substring 0 8 commit; cmdLineTest = '' mina --version mv _build/default/src/test/command_line_tests/command_line_tests.exe tests.exe @@ -145,6 +147,9 @@ let mkdir -p $TMPDIR export MINA_LIBP2P_PASS="naughty blue worm" export MINA_PRIVKEY_PASS="naughty blue worm" + export MINA_KEYS_PATH=genesis_ledgers + mkdir -p $MINA_KEYS_PATH + echo '{"ledger":{"accounts":[]}}' > $MINA_KEYS_PATH/config_${commitShort}.json ./tests.exe --mina-path mina ''; in [