mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-22 21:57:58 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 949d7d3802 | |||
| 6a20dbf058 | |||
| 9987952c63 | |||
| 2087453634 | |||
| 9b75a4f236 |
@@ -16,6 +16,7 @@ use alloy::{
|
||||
primitives::{B256, FixedBytes, U256},
|
||||
signers::local::PrivateKeySigner,
|
||||
};
|
||||
use anyhow::Context as _;
|
||||
use clap::{Parser, ValueEnum, ValueHint};
|
||||
use revive_dt_common::types::{ParsedTestSpecifier, PlatformIdentifier};
|
||||
use semver::Version;
|
||||
@@ -1079,7 +1080,10 @@ impl FromStr for WorkingDirectoryConfiguration {
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s {
|
||||
"" => Ok(Default::default()),
|
||||
_ => Ok(Self::Path(PathBuf::from(s))),
|
||||
_ => PathBuf::from(s)
|
||||
.canonicalize()
|
||||
.context("Failed to canonicalize the working directory path")
|
||||
.map(Self::Path),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+14
-2
@@ -234,9 +234,15 @@ impl Platform for ReviveDevNodePolkavmResolcPlatform {
|
||||
.path
|
||||
.as_path();
|
||||
let wallet = AsRef::<WalletConfiguration>::as_ref(&context).wallet();
|
||||
let working_directory = AsRef::<WorkingDirectoryConfiguration>::as_ref(&context).as_path();
|
||||
let export_chainspec_command = SubstrateNode::REVIVE_DEV_NODE_EXPORT_CHAINSPEC_COMMAND;
|
||||
|
||||
SubstrateNode::node_genesis(revive_dev_node_path, export_chainspec_command, &wallet)
|
||||
SubstrateNode::node_genesis(
|
||||
revive_dev_node_path,
|
||||
export_chainspec_command,
|
||||
&wallet,
|
||||
working_directory,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,9 +308,15 @@ impl Platform for ReviveDevNodeRevmSolcPlatform {
|
||||
.path
|
||||
.as_path();
|
||||
let wallet = AsRef::<WalletConfiguration>::as_ref(&context).wallet();
|
||||
let working_directory = AsRef::<WorkingDirectoryConfiguration>::as_ref(&context).as_path();
|
||||
let export_chainspec_command = SubstrateNode::REVIVE_DEV_NODE_EXPORT_CHAINSPEC_COMMAND;
|
||||
|
||||
SubstrateNode::node_genesis(revive_dev_node_path, export_chainspec_command, &wallet)
|
||||
SubstrateNode::node_genesis(
|
||||
revive_dev_node_path,
|
||||
export_chainspec_command,
|
||||
&wallet,
|
||||
working_directory,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -160,6 +160,7 @@ impl SubstrateNode {
|
||||
&self.node_binary,
|
||||
&self.export_chainspec_command,
|
||||
&self.wallet,
|
||||
self.base_directory.as_path(),
|
||||
)
|
||||
.context("Failed to prepare the chainspec command")?;
|
||||
|
||||
@@ -319,6 +320,7 @@ impl SubstrateNode {
|
||||
node_path: &Path,
|
||||
export_chainspec_command: &str,
|
||||
wallet: &EthereumWallet,
|
||||
base_directory: impl AsRef<Path>,
|
||||
) -> anyhow::Result<serde_json::Value> {
|
||||
trace!("Exporting the chainspec");
|
||||
let output = Command::new(node_path)
|
||||
@@ -326,6 +328,7 @@ impl SubstrateNode {
|
||||
.arg("--chain")
|
||||
.arg("dev")
|
||||
.env_remove("RUST_LOG")
|
||||
.current_dir(base_directory)
|
||||
.output()
|
||||
.context("Failed to export the chain-spec")?;
|
||||
|
||||
|
||||
+1
-1
Submodule polkadot-sdk updated: a44be635e6...6ffecaaab2
+1
-1
Submodule resolc-compiler-tests updated: d06c4d0127...bb3b0c1319
Reference in New Issue
Block a user