[pkg-go] Bug#902467: golang-github-kardianos-osext: FTBFS in buster/sid (failing tests)

Shengjing Zhu i at zhsj.me
Fri Aug 3 08:22:40 BST 2018


Hi team,

Here is the patch to skip this test.

-- 
Shengjing Zhu
-------------- next part --------------
diff -Nru golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog
--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog	2018-04-30 23:23:20.000000000 +0800
+++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/changelog	2018-08-03 15:17:22.000000000 +0800
@@ -1,3 +1,10 @@
+golang-github-kardianos-osext (0.0~git20170510.0.ae77be6-6) unstable; urgency=medium
+
+  * Team upload.
+  * Skip TestExecutableDelete(false test).
+
+ -- Shengjing Zhu <i at zhsj.me>  Fri, 03 Aug 2018 15:17:22 +0800
+
 golang-github-kardianos-osext (0.0~git20170510.0.ae77be6-5) unstable; urgency=medium
 
   [ Alexandre Viau ]
diff -Nru golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch
--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch	1970-01-01 08:00:00.000000000 +0800
+++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/0001-skip-testexecutabledelete.patch	2018-08-03 15:14:30.000000000 +0800
@@ -0,0 +1,26 @@
+Description: Skip TestExecutableDelete
+Author: Shengjing Zhu <i at zhsj.me>
+
+Reading this test logic, it first reads its self executable path, then
+start it self, then remove original file. It of cause prints the
+"/tmp/go-buildnnn/b001/osext.test (deleted)".
+                                  ^^^^^^^^^
+In go >= 1.8, this package's Executable function just fallback
+to go system os package. I think there's no need to test it.
+
+Origin: other
+Bug: https://github.com/kardianos/osext/issues/21
+Bug-Debian: https://bugs.debian.org/902467
+Forwarded: no
+Last-Update: 2018-08-03
+
+--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6.orig/osext_test.go
++++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/osext_test.go
+@@ -80,6 +80,7 @@ func TestExecutableMatch(t *testing.T) {
+ }
+ 
+ func TestExecutableDelete(t *testing.T) {
++	t.Skip()
+ 	if runtime.GOOS != "linux" {
+ 		t.Skip()
+ 	}
diff -Nru golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series
--- golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series	1970-01-01 08:00:00.000000000 +0800
+++ golang-github-kardianos-osext-0.0~git20170510.0.ae77be6/debian/patches/series	2018-08-03 15:15:49.000000000 +0800
@@ -0,0 +1 @@
+0001-skip-testexecutabledelete.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-go-maintainers/attachments/20180803/e43268f9/attachment.sig>


More information about the Pkg-go-maintainers mailing list