summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases.yaml
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-07-23 17:29:30 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-07-23 17:29:30 +0000
commit6a9e576a204c36ba29e05da2bb265d1d6ed12b22 (patch)
tree1d634a79f42ebe1b2454261fc339cbe0574a68ce /tests/cloud_tests/testcases.yaml
parent2a9d6203d946484cbe24297fe0e48a42a800756a (diff)
downloadvyos-cloud-init-6a9e576a204c36ba29e05da2bb265d1d6ed12b22.tar.gz
vyos-cloud-init-6a9e576a204c36ba29e05da2bb265d1d6ed12b22.zip
tests: Collect build_info from system if available.
This adds a script to always get the /etc/cloud/build.info file if it exists, and a hook when preparing the image to log the information if it is available. INFO - setting up ubuntu-cosmic (build_name=server serial=20180718) This is just useful for debug and reproduce.
Diffstat (limited to 'tests/cloud_tests/testcases.yaml')
-rw-r--r--tests/cloud_tests/testcases.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases.yaml b/tests/cloud_tests/testcases.yaml
index a16d1ddf..fb9a5d27 100644
--- a/tests/cloud_tests/testcases.yaml
+++ b/tests/cloud_tests/testcases.yaml
@@ -27,6 +27,10 @@ base_test_data:
package-versions: |
#!/bin/sh
dpkg-query --show
+ build.info: |
+ #!/bin/sh
+ binfo=/etc/cloud/build.info
+ [ -f "$binfo" ] && cat "$binfo" || echo "N/A"
system.journal.gz: |
#!/bin/sh
[ -d /run/systemd ] || { echo "not systemd."; exit 0; }