toolkit/func/core/pkg_python/10-test-python3.sh
2021-07-04 23:50:25 -07:00

9 lines
181 B
Bash
Executable File

#!/bin/bash
r_log "python" "Test python basic printing"
cat > /var/tmp/test.py << EOF
print("Hello!")
EOF
/usr/bin/python3 /var/tmp/test.py | grep -q "Hello!"
r_checkExitStatus $?