mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-29 22:40:31 +08:00
fix: don't init pretty_env_logger twice
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -25,7 +25,7 @@ expect_failure() {
|
||||
cargo build --all-targets --quiet
|
||||
|
||||
tmp="$(mktemp -d)"
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
#trap 'rm -rf "$tmp"' EXIT
|
||||
export TMPDIR="$tmp"
|
||||
|
||||
cat <<EOF >"$tmp/config.yaml"
|
||||
@@ -33,10 +33,16 @@ state: $tmp/test.state
|
||||
log: $tmp/test.log
|
||||
EOF
|
||||
|
||||
export RADICLE_NATIVE_CI="$tmp/test.yaml"
|
||||
export RADICLE_NATIVE_CI="$tmp/config.yaml"
|
||||
export RADICLE_NATIVE_CI_LOG=debug
|
||||
|
||||
python3 test.py --commit b3a9a809420c89d08460046683f33d8a5bdfdc0a >"$tmp/test-request.yaml"
|
||||
expect_failure
|
||||
echo "test.log"
|
||||
cat "$tmp/test.log"
|
||||
|
||||
echo
|
||||
echo "log.txt"
|
||||
cat "$tmp/test.state"/*/log.txt
|
||||
|
||||
echo All good.
|
||||
|
||||
Reference in New Issue
Block a user