From 00a41064459d5cbd9fe3cda331b2382720d028b5 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 5 Dec 2024 13:23:25 +0800 Subject: [PATCH] debug --- integration_tests/configs/upgrade-test-package-recent.nix | 3 ++- integration_tests/configs/upgrade-test-package.nix | 8 +++++--- integration_tests/cosmoscli.py | 4 +++- integration_tests/shell.nix | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/integration_tests/configs/upgrade-test-package-recent.nix b/integration_tests/configs/upgrade-test-package-recent.nix index 00b125c946..bb1b7139ec 100644 --- a/integration_tests/configs/upgrade-test-package-recent.nix +++ b/integration_tests/configs/upgrade-test-package-recent.nix @@ -28,6 +28,7 @@ pkgs.linkFarm "upgrade-test-package" [ } { name = "v1.4.0-rc5-testnet"; - path = current; + # path = current; + path = "/Users/mavis/Desktop/upgrade/cronos/v1.4.0-rc5-testnet/"; } ] diff --git a/integration_tests/configs/upgrade-test-package.nix b/integration_tests/configs/upgrade-test-package.nix index db6019a78a..2feab7be2e 100644 --- a/integration_tests/configs/upgrade-test-package.nix +++ b/integration_tests/configs/upgrade-test-package.nix @@ -10,8 +10,9 @@ let }; }).defaultNix; # v1.0.15 - releasedGenesis = - (fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; + # releasedGenesis = + # (fetchFlake "crypto-org-chain/cronos" "1f5e2618362303d91f621b47cbc1115cf4fa0195").default; + releasedGenesis = import (builtins.fetchTarball "https://github.com/crypto-org-chain/cronos/archive/v0.6.10.tar.gz") { }; # release/v1.1.x released1_1 = (fetchFlake "crypto-org-chain/cronos" "69a80154b6b24fca15f3562e2c4b312ee1092220").default; @@ -49,6 +50,7 @@ pkgs.linkFarm "upgrade-test-package" [ } { name = "v1.4.0-rc5-testnet"; - path = current; + # path = current; + path = "/Users/mavis/Desktop/upgrade/cronos/v1.4.0-rc5-testnet/"; } ] diff --git a/integration_tests/cosmoscli.py b/integration_tests/cosmoscli.py index 9de6920f82..7ea6cd4f09 100644 --- a/integration_tests/cosmoscli.py +++ b/integration_tests/cosmoscli.py @@ -51,7 +51,9 @@ def __init__(self, cmd): def __call__(self, cmd, *args, stdin=None, stderr=subprocess.STDOUT, **kwargs): "execute chain-maind" args = " ".join(build_cli_args_safe(cmd, *args, **kwargs)) - return interact(f"{self.cmd} {args}", input=stdin, stderr=stderr) + cli1 = f"{self.cmd} {args}" + print("mm-cli1", cli1) + return interact(cli1, input=stdin, stderr=stderr) class CosmosCLI: diff --git a/integration_tests/shell.nix b/integration_tests/shell.nix index 0eac66d989..1bfc492f13 100644 --- a/integration_tests/shell.nix +++ b/integration_tests/shell.nix @@ -4,7 +4,7 @@ }: pkgs.mkShell { buildInputs = [ - (pkgs.callPackage ../. { coverage = true; }) # cronosd + # (pkgs.callPackage ../. { coverage = true; }) # cronosd pkgs.start-scripts pkgs.go-ethereum pkgs.cosmovisor @@ -13,6 +13,7 @@ pkgs.mkShell { pkgs.chain-maind pkgs.hermes pkgs.rly + pkgs.poetry ]; shellHook = '' mkdir ./coverage