1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/bash
set -x
case "$SNAP_ARCH" in
"amd64") ARCH='x86_64-linux-gnu'
;;
"i386") ARCH='i386-linux-gnu'
;;
"arm64") ARCH='aarch64-linux-gnu'
;;
"armhf") ARCH='arm-linux-gnueabihf'
;;
*)
echo "Unsupported architecture: $SNAP_ARCH"
;;
esac
if [[ "$@" == *"--profile"* ]]; then
exec python3 -m cProfile $SNAP/python_tests.py "$@"
else
exec python3 $SNAP/python_tests.py "$@"
fi
|