diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2019-05-17 10:17:10 -0400 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2019-05-17 10:17:10 -0400 |
| commit | f6d1e77cb12539664935bafaae9159bb37058fb8 (patch) | |
| tree | 876539525aced52bf9d5ebdaf124637483a1dabf | |
| parent | aeb4b79512e0ee8c4c1184bef8b60dea3318b094 (diff) | |
Added job to attach netplan or E/N/I to test runs for server. lp: #1829538
| -rwxr-xr-x | bin/network_configs | 12 | ||||
| -rw-r--r-- | units/info/jobs.pxu | 7 | ||||
| -rw-r--r-- | units/info/test-plan.pxu | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/bin/network_configs b/bin/network_configs new file mode 100755 index 0000000..f546f3e --- /dev/null +++ b/bin/network_configs @@ -0,0 +1,12 @@ +#!/bin/bash + +if `grep -q "replaced by netplan" /etc/network/interfaces`; then + for configfile in `find /etc/netplan -type f`; do + echo "Config File $configfile:" + cat $configfile + echo "" + done +else + echo "/etc/network/interfaces:" + cat /etc/network/interfaces +fi diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 93ccd92..2e1b120 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -452,3 +452,10 @@ command: lstopo $PLAINBOX_SESSION_SHARE/lstopo_visual.png; \ [ -e "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" ] && \ cat "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" + +id: info/network-config +plugin: attachment +category_id: com.canonical.plainbox::info +estimated_duration: 0.2 +_summary: attach network configuration +command: network_configs diff --git a/units/info/test-plan.pxu b/units/info/test-plan.pxu index d293954..6e59a73 100644 --- a/units/info/test-plan.pxu +++ b/units/info/test-plan.pxu @@ -70,6 +70,7 @@ include: efi_attachment info/disk_partitions info/hdparm_.*.txt + info/network-config installer_debug.gz kernel_cmdline_attachment lsblk_attachment |
