9 lines
366 B
Bash
Executable File
9 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
# Screenshot of the test VM: tests/shot.sh NAME -> test_report/NAME.png
|
|
cd "$(dirname "$0")/.."
|
|
mkdir -p test_report tests/work
|
|
python3 -I tests/monitor.py tests/work/monitor.sock "screendump $PWD/tests/work/shot.ppm"
|
|
sleep 1
|
|
python3 -I -c "from PIL import Image; Image.open('tests/work/shot.ppm').save('test_report/$1.png')"
|
|
echo "test_report/$1.png"
|