toolkit/func/core/pkg_python/10-test-python3.sh

9 lines
181 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/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 $?