mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-11 07:22:58 +00:00
Update validate-1m-linux.sh
This commit is contained in:
parent
0e9e7f2ebc
commit
82a9122fc3
25
.github/workflows/validate-1m-linux.sh
vendored
25
.github/workflows/validate-1m-linux.sh
vendored
@ -173,6 +173,7 @@ main() {
|
|||||||
|
|
||||||
if [[ "$both_instances_online" != "true" ]]; then
|
if [[ "$both_instances_online" != "true" ]]; then
|
||||||
echo "One or more instances of ZeroTier failed to come online. Aborting test."
|
echo "One or more instances of ZeroTier failed to come online. Aborting test."
|
||||||
|
collect_zt_dump_files
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -283,16 +284,7 @@ main() {
|
|||||||
# Collect ZeroTier dump files #
|
# Collect ZeroTier dump files #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
echo -e "\nCollecting ZeroTier dump files"
|
collect_zt_dump_files
|
||||||
|
|
||||||
node1_id=$($ZT1 -j status | jq -r .address)
|
|
||||||
node2_id=$($ZT2 -j status | jq -r .address)
|
|
||||||
|
|
||||||
$ZT1 dump
|
|
||||||
mv zerotier_dump.txt "$TEST_FILEPATH_PREFIX-node-dump-$node1_id.txt"
|
|
||||||
|
|
||||||
$ZT2 dump
|
|
||||||
mv zerotier_dump.txt "$TEST_FILEPATH_PREFIX-node-dump-$node2_id.txt"
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Let ZeroTier idle long enough for various timers #
|
# Let ZeroTier idle long enough for various timers #
|
||||||
@ -468,4 +460,17 @@ check_exit_on_invalid_identity() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
collect_zt_dump_files() {
|
||||||
|
echo -e "\nCollecting ZeroTier dump files"
|
||||||
|
|
||||||
|
node1_id=$($ZT1 -j status | jq -r .address)
|
||||||
|
node2_id=$($ZT2 -j status | jq -r .address)
|
||||||
|
|
||||||
|
$ZT1 dump
|
||||||
|
mv zerotier_dump.txt "$TEST_FILEPATH_PREFIX-node-dump-$node1_id.txt"
|
||||||
|
|
||||||
|
$ZT2 dump
|
||||||
|
mv zerotier_dump.txt "$TEST_FILEPATH_PREFIX-node-dump-$node2_id.txt"
|
||||||
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user