Package: crash
Version: 7.0.7
Severity: normal
Tags: patch
User: [email protected]
Usertags: autopkgtest
Dear Maintainer,
The tests can not be run in debci using autopkgtest. Below the
autopkgtest's log:
adt-run [00:06:23]: test live: [-----------------------
Adding linux-image debug symbols.
/tmp/adt-run.wz39PJ/tree/debian/tests/live: line 20: warning:
here-document at line 8 delimited by end-of-file (wanted `EOF')
/tmp/adt-run.wz39PJ/tree/debian/tests/live: line 21: syntax error:
unexpected end of file
adt-run [00:06:24]: test live: -----------------------]
adt-run [00:06:24]: test live: - - - - - - - - - - results - - - - - -
- - - -
live FAIL non-zero exit status 2
adt-run [00:06:24]: test live: - - - - - - - - - - stderr - - - - - - -
- - -
/tmp/adt-run.wz39PJ/tree/debian/tests/live: line 20: warning:
here-document at line 8 delimited by end-of-file (wanted `EOF')
/tmp/adt-run.wz39PJ/tree/debian/tests/live: line 21: syntax error:
unexpected end of file
In file debian/tests/live had a mistake in identation (the syntax error
indicated) of command 'tee' multiline, and the dependency of 'sudo' was
added in debian/tests/control. I added a 'sudo apt-get update' command
if release is Debian because without this the system cannot find the
linux image of current kernel to install it. These things was solved
with the attached patch.
Thanks for consider it!
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru crash-7.0.7.orig/debian/tests/control crash-7.0.7/debian/tests/control
--- crash-7.0.7.orig/debian/tests/control 2014-08-02 15:42:32.967522345 -0300
+++ crash-7.0.7/debian/tests/control 2014-08-03 23:52:54.206595695 -0300
@@ -1,3 +1,3 @@
Tests: live
Restrictions: needs-root
-Depends: @, lsb-release
+Depends: @, lsb-release, sudo
diff -Nru crash-7.0.7.orig/debian/tests/live crash-7.0.7/debian/tests/live
--- crash-7.0.7.orig/debian/tests/live 2014-08-02 15:42:32.967522345 -0300
+++ crash-7.0.7/debian/tests/live 2014-08-03 23:57:23.513177432 -0300
@@ -3,14 +3,15 @@
echo "Adding linux-image debug symbols."
if [ "$(lsb_release -is)" = "Debian" ]; then
+ sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbg
elif [ "$(lsb_release -is)" = "Ubuntu" ]; then
sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
- deb http://ddebs.ubuntu.com/ $(lsb_release -cs) main restricted universe multiverse
- deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-security main restricted universe multiverse
- deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-updates main restricted universe multiverse
- deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-proposed main restricted universe multiverse
- EOF
+deb http://ddebs.ubuntu.com/ $(lsb_release -cs) main restricted universe multiverse
+deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-security main restricted universe multiverse
+deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-updates main restricted universe multiverse
+deb http://ddebs.ubuntu.com/ $(lsb_release -cs)-proposed main restricted universe multiverse
+EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym