I want to rerun a test inside frame-support and overwrite the .stderr file with the actual error. The CI checks give me the instruction to rerun the test with the environment variable TRYBUILD=overwrite, but how do I do that? I tried to set the env variable in the Cargo.toml file like:

TRYBUILD = "overwrite"

but this doesn't work.

1 Answer 1


There is a script in the Substrate repo which you can use to update the pallet UI tests.
You can call it like this:

.maintain/update-rust-stable.sh 1.62

with the Rust version that you want to use.
This should set all env variables, thanks to @bkchr.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.