refactor(discovery): use ping for discovery and fill MAC via SSH
This commit is contained in:
12
auto-check/scripts/full.sh
Normal file
12
auto-check/scripts/full.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
echo "===TEST:full==="
|
||||
START_TIME=$(date +%s%N)
|
||||
set +e
|
||||
OUTPUT=$(stress-ng --cpu "${AUTOCHECK_THREADS:-4}" --vm 2 --vm-bytes 128M --iomix 1 --iomix-bytes 256M --timeout "${AUTOCHECK_DURATION:-30}s" --metrics-brief 2>&1)
|
||||
EXIT_CODE=$?
|
||||
set -e
|
||||
END_TIME=$(date +%s%N)
|
||||
DURATION_MS=$(( (END_TIME - START_TIME) / 1000000 ))
|
||||
if [ "$EXIT_CODE" -eq 0 ]; then echo 'status:pass'; else echo 'status:fail'; fi
|
||||
echo "duration:${DURATION_MS}ms"
|
||||
echo "output:${OUTPUT}"
|
||||
echo ''
|
||||
Reference in New Issue
Block a user