Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
chore: make docs test upload test result when needed (backport #27660) (
Browse files Browse the repository at this point in the history
#27663)

* chore: make docs test upload test result when needed (#27660)

(cherry picked from commit 54129c4)

# Conflicts:
#	ci/test-stable.sh

* fix conflict

Co-authored-by: Yihau Chen <[email protected]>
  • Loading branch information
mergify[bot] and yihau authored Sep 8, 2022
1 parent 95cf8bd commit d390a9d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/test-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,13 @@ test-wasm)
exit 0
;;
test-docs)
_ "$cargo" stable test --jobs "$JOBS" --all --doc --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
exit 0
if need_to_generate_test_result; then
_ "$cargo" stable test --jobs "$JOBS" --all --doc --exclude solana-local-cluster ${V:+--verbose} -- -Z unstable-options --format json --report-time | tee results.json
exit "${PIPESTATUS[0]}"
else
_ "$cargo" stable test --jobs "$JOBS" --all --doc --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
exit 0
fi
;;
*)
echo "Error: Unknown test: $testName"
Expand Down

0 comments on commit d390a9d

Please sign in to comment.