Mercurial > hg
view tests/test-check-cargo-lock.t @ 50730:cfb6ca77e6bc stable
tests: improve test-patchbomb-tls.t by by logging errors and data
The actual SSL error might be like:
::1 ssl error: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1002)
and will probably vary so much that it can't be checked in the test. It is
however very useful when debugging failures.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 26 Jun 2023 15:51:39 +0200 |
parents | ba0d93a5f06f |
children |
line wrap: on
line source
#require cargo test-repo $ . "$TESTDIR/helpers-testrepo.sh" $ cd "$TESTDIR"/../rust Check if Cargo.lock is up-to-date. Will fail with a 101 error code if not. $ cargo check --locked --all --quiet However most CIs will run `cargo build` or similar before running the tests, so we need to check if it was modified $ testrepohg diff Cargo.lock