tests/runkola: New script
This may become `cosa kola-fast` or something.
This commit is contained in:
parent
22bf449296
commit
81f8931162
16
tests/runkola
Executable file
16
tests/runkola
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
# Use with `cosa build-fast`, e.g.:
|
||||||
|
# cosa build-fast && ./tests/runkola
|
||||||
|
top=$(git rev-parse --show-toplevel)
|
||||||
|
cd ${top}
|
||||||
|
image=$(ls fastbuild-*-qemu.qcow2 | head -1)
|
||||||
|
if [ -z "${image}" ]; then
|
||||||
|
echo "Must run on image from cosa build-fast"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ -z "$@" ]; then
|
||||||
|
set -- 'ext.*' "$@"
|
||||||
|
fi
|
||||||
|
set -x
|
||||||
|
exec kola run -p qemu --qemu-image "${image}" -E ${top} "$@"
|
Loading…
Reference in New Issue
Block a user