mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
Convert paradoc test to bash script
Now loads the paradoc correctly and gets paradoc to print the result
This commit is contained in:
parent
4a160ac5ab
commit
7ab4373992
2 changed files with 11 additions and 5 deletions
|
@ -1,5 +0,0 @@
|
|||
try:
|
||||
import paradoc
|
||||
print('good')
|
||||
except:
|
||||
pass
|
11
lxc/tests/test_paradoc.sh
Normal file
11
lxc/tests/test_paradoc.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# add paradoc module to python python
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
|
||||
# file for test code
|
||||
test_code=/tmp/paradoc.test
|
||||
# save test code to file
|
||||
echo -n iP>$test_code
|
||||
# pass param to paradoc module and have it print it
|
||||
echo good | python3.8 -m paradoc $test_code
|
||||
# clean test code
|
||||
rm -f $test_code
|
Loading…
Add table
Add a link
Reference in a new issue