← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] ~andersson123/auto-upgrade-testing-specifications:add_apport_no_ui_to_tests into auto-upgrade-testing-specifications:main

 

Tim Andersson has proposed merging ~andersson123/auto-upgrade-testing-specifications:add_apport_no_ui_to_tests into auto-upgrade-testing-specifications:main.

Requested reviews:
  Canonical Platform QA Team (canonical-platform-qa)

For more details, see:
https://code.launchpad.net/~andersson123/auto-upgrade-testing-specifications/+git/auto-upgrade-testing-specifications/+merge/451805
-- 
Your team Canonical Platform QA Team is requested to review the proposed merge of ~andersson123/auto-upgrade-testing-specifications:add_apport_no_ui_to_tests into auto-upgrade-testing-specifications:main.
diff --git a/profiles/ubuntu-bionic-focal-basic-amd64_qemu.yaml b/profiles/ubuntu-bionic-focal-basic-amd64_qemu.yaml
index 7cb013c..0862757 100644
--- a/profiles/ubuntu-bionic-focal-basic-amd64_qemu.yaml
+++ b/profiles/ubuntu-bionic-focal-basic-amd64_qemu.yaml
@@ -12,6 +12,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "rcS-workaround"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-bionic-focal-desktop-amd64_qemu.yaml b/profiles/ubuntu-bionic-focal-desktop-amd64_qemu.yaml
index ec4a600..5b1fed1 100644
--- a/profiles/ubuntu-bionic-focal-desktop-amd64_qemu.yaml
+++ b/profiles/ubuntu-bionic-focal-desktop-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "rcS-workaround"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-basic-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-basic-amd64_qemu.yaml
index e8b26e9..55511d0 100644
--- a/profiles/ubuntu-focal-jammy-basic-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-basic-amd64_qemu.yaml
@@ -12,6 +12,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "null"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-desktop-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-desktop-amd64_qemu.yaml
index 7a4a263..c40b1f2 100644
--- a/profiles/ubuntu-focal-jammy-desktop-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-desktop-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-kubuntu-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-kubuntu-amd64_qemu.yaml
index a9e52cc..7731cab 100644
--- a/profiles/ubuntu-focal-jammy-kubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-kubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-kubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-lubuntu-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-lubuntu-amd64_qemu.yaml
index ba0e699..5a5ecf5 100644
--- a/profiles/ubuntu-focal-jammy-lubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-lubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-lubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-ubuntu-mate-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-ubuntu-mate-amd64_qemu.yaml
index 49e9ec8..cb1e83e 100644
--- a/profiles/ubuntu-focal-jammy-ubuntu-mate-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-ubuntu-mate-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-mate-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-focal-jammy-xubuntu-amd64_qemu.yaml b/profiles/ubuntu-focal-jammy-xubuntu-amd64_qemu.yaml
index 666e94a..c3731ac 100644
--- a/profiles/ubuntu-focal-jammy-xubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-focal-jammy-xubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-xubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-basic-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-basic-amd64_qemu.yaml
index 4f83334..6deb08e 100644
--- a/profiles/ubuntu-kinetic-lunar-basic-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-basic-amd64_qemu.yaml
@@ -12,6 +12,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "null"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-desktop-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-desktop-amd64_qemu.yaml
index 562adf1..fc30ea8 100644
--- a/profiles/ubuntu-kinetic-lunar-desktop-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-desktop-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-kubuntu-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-kubuntu-amd64_qemu.yaml
index 2cfae50..4fb7982 100644
--- a/profiles/ubuntu-kinetic-lunar-kubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-kubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-kubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-lubuntu-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-lubuntu-amd64_qemu.yaml
index 393db06..77c709f 100644
--- a/profiles/ubuntu-kinetic-lunar-lubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-lubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-lubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-ubuntu-mate-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-ubuntu-mate-amd64_qemu.yaml
index d7ae5f9..ea15fa9 100644
--- a/profiles/ubuntu-kinetic-lunar-ubuntu-mate-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-ubuntu-mate-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-mate-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-ubuntu-unity-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-ubuntu-unity-amd64_qemu.yaml
index f834f38..ee2d43c 100644
--- a/profiles/ubuntu-kinetic-lunar-ubuntu-unity-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-ubuntu-unity-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-unity-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-kinetic-lunar-xubuntu-amd64_qemu.yaml b/profiles/ubuntu-kinetic-lunar-xubuntu-amd64_qemu.yaml
index 8832c25..6b39fbc 100644
--- a/profiles/ubuntu-kinetic-lunar-xubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-kinetic-lunar-xubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-xubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-basic-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-basic-amd64_qemu.yaml
index 30655a6..e3f6000 100644
--- a/profiles/ubuntu-lunar-mantic-basic-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-basic-amd64_qemu.yaml
@@ -12,6 +12,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "null"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-desktop-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-desktop-amd64_qemu.yaml
index acedf80..336a6ce 100644
--- a/profiles/ubuntu-lunar-mantic-desktop-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-desktop-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-kubuntu-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-kubuntu-amd64_qemu.yaml
index ee608fb..5d7abbc 100644
--- a/profiles/ubuntu-lunar-mantic-kubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-kubuntu-amd64_qemu.yaml
@@ -13,6 +13,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-kubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-lubuntu-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-lubuntu-amd64_qemu.yaml
index 6e15a2d..627e25a 100644
--- a/profiles/ubuntu-lunar-mantic-lubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-lubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-lubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-ubuntu-mate-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-ubuntu-mate-amd64_qemu.yaml
index e67125a..d349c85 100644
--- a/profiles/ubuntu-lunar-mantic-ubuntu-mate-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-ubuntu-mate-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-mate-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-ubuntu-unity-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-ubuntu-unity-amd64_qemu.yaml
index 1d7c351..3c108cf 100644
--- a/profiles/ubuntu-lunar-mantic-ubuntu-unity-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-ubuntu-unity-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntu-unity-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-ubuntucinnamon-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-ubuntucinnamon-amd64_qemu.yaml
index b349b37..f4a561a 100644
--- a/profiles/ubuntu-lunar-mantic-ubuntucinnamon-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-ubuntucinnamon-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-ubuntucinnamon-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/profiles/ubuntu-lunar-mantic-xubuntu-amd64_qemu.yaml b/profiles/ubuntu-lunar-mantic-xubuntu-amd64_qemu.yaml
index 5f5362c..3b3c43b 100644
--- a/profiles/ubuntu-lunar-mantic-xubuntu-amd64_qemu.yaml
+++ b/profiles/ubuntu-lunar-mantic-xubuntu-amd64_qemu.yaml
@@ -14,6 +14,7 @@
   script_location: file://../tests
   pre_upgrade_scripts:
     - "check-xubuntu-desktop"
+    - "enable-apport-noui"
 
   post_upgrade_tests:
     - "check-conffile-prompt"
diff --git a/tests/check-var-crash-empty b/tests/check-var-crash-empty
index c7dfa3e..1e95787 100755
--- a/tests/check-var-crash-empty
+++ b/tests/check-var-crash-empty
@@ -4,6 +4,8 @@ set -e
 
 crashdir=/var/crash
 
+printf "========================================check varcrash empty===============================================n"
+
 echo "Checking for (absence of) crash files in $crashdir."
 
 if find "$crashdir" -maxdepth 0 ! -empty -exec false {} +; then
@@ -11,5 +13,8 @@ if find "$crashdir" -maxdepth 0 ! -empty -exec false {} +; then
 else
     echo "FAIL: $crashdir is not empty. Crash files sorted by creation time:"
     ls -gGh -tr --time=creation --full-time "$crashdir"
+    for file in "$crashdir"/*; do
+        cat $file
+    done
     exit 1
 fi
diff --git a/tests/enable-apport-noui b/tests/enable-apport-noui
new file mode 100755
index 0000000..f0ecf6d
--- /dev/null
+++ b/tests/enable-apport-noui
@@ -0,0 +1,5 @@
+sudo DEBIAN_FRONTEND=noninteractive apt-get -y install apport-noui
+sudo systemctl daemon-reload
+sudo systemctl enable apport.service
+sudo systemctl daemon-reload
+sudo systemctl start apport.service