run integration tests with simple sample data

This commit is contained in:
Michael Hudson-Doyle 2019-05-30 13:11:36 +12:00
parent f188a4a4b0
commit 0c55149c31
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Filesystem:
obj: [disk index 0]
action: PARTITION
data:
size: 1G
size: 0.5G
fstype: null
- *newpart
- *newpart

View File

@ -7,7 +7,7 @@ for answers in examples/answers*.yaml; do
rm -f .subiquity/subiquity-debug.log
rm -f .subiquity/run/subiquity/updating
# The --foreground is important to avoid subiquity getting SIGTTOU-ed.
timeout --foreground 60 sh -c "LANG=C.UTF-8 python3 -m subiquity.cmd.tui --answers $answers --dry-run --snaps-from-examples --machine-config examples/mwhudson.json"
timeout --foreground 60 sh -c "LANG=C.UTF-8 python3 -m subiquity.cmd.tui --answers $answers --dry-run --snaps-from-examples --machine-config examples/simple.json"
python3 scripts/validate-yaml.py .subiquity/subiquity-curtin-install.conf
if grep passw0rd .subiquity/subiquity-debug.log | grep -v "Loaded answers" | grep -v "answers_action"; then
echo "password leaked into log file"