Files

13 lines
507 B
Bash

#!/bin/bash
# Verify the env_check.py and env_diagnostic.json artifacts exist and are valid
set -e
# Check both files exist
test -f /root/.hermes/wizard-outputs/spark/env_check.py
test -f /root/.hermes/wizard-outputs/spark/env_diagnostic.json
# Verify JSON is valid by checking it has expected fields
python3 -c "import json; d=json.load(open('/root/.hermes/wizard-outputs/spark/env_diagnostic.json')); assert 'hostname' in d; assert 'python_version' in d"
echo "VERIFICATION: All artifacts valid"
exit 0