Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 5, 2024
1 parent a9c9f48 commit 00a4106
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion integration_tests/configs/upgrade-test-package-recent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
}
]
8 changes: 5 additions & 3 deletions integration_tests/configs/upgrade-test-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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/";
}
]
4 changes: 3 additions & 1 deletion integration_tests/cosmoscli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion integration_tests/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -13,6 +13,7 @@ pkgs.mkShell {
pkgs.chain-maind
pkgs.hermes
pkgs.rly
pkgs.poetry
];
shellHook = ''
mkdir ./coverage
Expand Down

0 comments on commit 00a4106

Please sign in to comment.