Your message dated Sun, 25 Sep 2016 19:20:57 +0000
with message-id <[email protected]>
and subject line Bug#798296: fixed in bats 0.4.0-1.1
has caused the Debian Bug report #798296,
regarding bats own testsuite fails with TERM set to unknown
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
798296: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798296
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:bats
Version: 0.4.0-1
Severity: important
Tags: patch

bats own testsuite fails when TERM is set to unknown. The following patch fixes
it.  It also prints the $output for failed tests (taken from an upstream pull
request).

patch attached

  * Set TERM for running the tests when not set or set to unknown.
  * Apply upstream pull requests #101 to print the output of failed tests.
 
diff -Nru bats-0.4.0/debian/patches/fix-101.diff 
bats-0.4.0/debian/patches/fix-101.diff
--- bats-0.4.0/debian/patches/fix-101.diff      1970-01-01 01:00:00.000000000 
+0100
+++ bats-0.4.0/debian/patches/fix-101.diff      2015-09-07 21:11:23.000000000 
+0200
@@ -0,0 +1,14 @@
+Index: b/libexec/bats-exec-test
+===================================================================
+--- a/libexec/bats-exec-test
++++ b/libexec/bats-exec-test
+@@ -161,6 +161,9 @@ bats_print_failed_command() {
+   else
+     echo "failed with status $status"
+   fi
++  if [ -n "$output" ]; then
++      echo "#   $output"
++  fi
+ }
+ 
+ bats_frame_lineno() {
diff -Nru bats-0.4.0/debian/patches/series bats-0.4.0/debian/patches/series
--- bats-0.4.0/debian/patches/series    2014-12-07 06:53:16.000000000 +0100
+++ bats-0.4.0/debian/patches/series    2015-09-07 21:42:36.000000000 +0200
@@ -1 +1,2 @@
 deb_libexec_to_lib
+fix-101.diff
diff -Nru bats-0.4.0/debian/rules bats-0.4.0/debian/rules
--- bats-0.4.0/debian/rules     2014-12-07 06:53:16.000000000 +0100
+++ bats-0.4.0/debian/rules     2015-09-07 21:37:37.000000000 +0200
@@ -11,5 +11,9 @@
        ./install.sh debian/bats/usr
 
 override_dh_auto_test:
+       set -e; \
+       if [ x$$TERM = x ] || [ x$$TERM = xunknown ]; then \
+         export TERM=dumb; \
+       fi; \
        bin/bats --tap test
 

--- End Message ---
--- Begin Message ---
Source: bats
Source-Version: 0.4.0-1.1

We believe that the bug you reported is fixed in the latest version of
bats, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tobias Frost <[email protected]> (supplier of updated bats package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 25 Sep 2016 11:40:12 +0200
Source: bats
Binary: bats
Architecture: source
Version: 0.4.0-1.1
Distribution: unstable
Urgency: medium
Maintainer: Yaroslav Halchenko <[email protected]>
Changed-By: Tobias Frost <[email protected]>
Description:
 bats       - bash automated testing system
Closes: 798296
Changes:
 bats (0.4.0-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Set TERM=dumb for tests to avoid FTBFS (Closes: #798296) and
     Using dumb to keep the build reproducible.
Checksums-Sha1:
 17fe8648a17c17d44fcb59fa48426e3260d6f9e3 1757 bats_0.4.0-1.1.dsc
 4dc8e7e9ea11b81cee259c568c3b9a4a8932f427 2444 bats_0.4.0-1.1.debian.tar.xz
Checksums-Sha256:
 d62a2b805feb1625e5fbb03d3f70411f04a1da9c579fbce9d8063b148d910cd2 1757 
bats_0.4.0-1.1.dsc
 bc46d883bdac4149544d736a17ed375d999d62fd4065f85fa48f3937ab475724 2444 
bats_0.4.0-1.1.debian.tar.xz
Files:
 5e8b9333487de4462e41423447b7be75 1757 shells optional bats_0.4.0-1.1.dsc
 dad52f96fd216dddf5cde00cbc0fb27b 2444 shells optional 
bats_0.4.0-1.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJX55xOAAoJEJFk+h0XvV02N+QQAJ+wgeZAiv/Zv0x8j4mghnTU
EG6RHx5/wkU54nV8zfwdm9VPKBtVPdzCJ/lrm9vPEQ+40WZyOE65v0Gr/c8fopDI
sJ2pRUw0s+3msjrNYaMGU5T5zsLKbwQWw0iDaGL6FA/QMBmsk5V7KQx5xbjPIIui
fT2QqkinCZzexTFMZ1bsZ4oeLSdVV26ZKmi8Iv2gdmoZR2p8lyNoU14REbUOgTlQ
xRhad828bg8Oxj2bnwoy6aQtPuIB+M4OAaU7YfJmvsUJeNzkQEZd8EVRPGoV5DEx
d6kX9jTVIL67IOQDC8hcIqJe03DyfcOdDHKgsIE+IEq1gP/GED3Fmbrjdt7M+9nj
2TvLek3K6coYRFAHAvOV3onXsC+c3FxmMDBAsMwqpsPyIqiKcFvPZa908s58sQGM
ZIvOMqHC6gPFkdyBpU3pfQBh/2h7VWYPL8xu0fHwpCKVdbwLU23sUBrDNFnzcMNM
fhjpTVrLDtW8xW0TAwbvezb5xlk5q+XQyOx6DMkJglNRWMX5t2KIHriFnWlKVgqb
8jUltt+NFtKn+BpZMoYr9CEyhW6hPlLJQ5YDViaAAlV1FPWfApMh+c95HIaLvhBA
RjCJ+dWSGgtncqSBIwb+0KT5QVa/5c+P1Rl3Jwt2ad7zVa+yoW/T/U1TXvc6t37g
2f+kI0Hs4lKL7K6PqvFN
=OEeS
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to