Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package lua-nvim

This version fixes a FTBFS (#920042) in a test during autopkgtest.

Defdiff attached. thanks.

unblock lua-nvim/0.1.0-1-2
diff -Nru lua-nvim-0.1.0-1/debian/changelog lua-nvim-0.1.0-1/debian/changelog
--- lua-nvim-0.1.0-1/debian/changelog   2018-06-11 20:44:29.000000000 -0400
+++ lua-nvim-0.1.0-1/debian/changelog   2019-03-04 21:12:53.000000000 -0500
@@ -1,3 +1,10 @@
+lua-nvim (0.1.0-1-2) unstable; urgency=medium
+
+  * New changelog entry
+  * Include a patch to fix a FTBFS due to test timeout (Closes: #920042)
+
+ -- Jason Pleau <ja...@jpleau.ca>  Mon, 04 Mar 2019 21:12:53 -0500
+
 lua-nvim (0.1.0-1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru 
lua-nvim-0.1.0-1/debian/patches/0001-Use-embed-headless-for-Socket-TcpStream-session-test.patch
 
lua-nvim-0.1.0-1/debian/patches/0001-Use-embed-headless-for-Socket-TcpStream-session-test.patch
--- 
lua-nvim-0.1.0-1/debian/patches/0001-Use-embed-headless-for-Socket-TcpStream-session-test.patch
     1969-12-31 19:00:00.000000000 -0500
+++ 
lua-nvim-0.1.0-1/debian/patches/0001-Use-embed-headless-for-Socket-TcpStream-session-test.patch
     2019-03-04 21:12:53.000000000 -0500
@@ -0,0 +1,36 @@
+From 24fe448aa406b0aa2267044a9858e3d2e5963b61 Mon Sep 17 00:00:00 2001
+From: James McCoy <james...@jamessan.com>
+Date: Sun, 3 Mar 2019 11:49:54 -0500
+Subject: [PATCH] Use --embed --headless for Socket/TcpStream session tests
+
+After neovim/neovim#9024, "nvim --embed" waits for a UI to attach.
+"nvim --embed --headless" is required if there is not going to be a UI.
+---
+ test/session_spec.lua | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/session_spec.lua b/test/session_spec.lua
+index d5d705c..1fc289d 100644
+--- a/test/session_spec.lua
++++ b/test/session_spec.lua
+@@ -155,7 +155,7 @@ end)
+ -- Session using SocketStream
+ test_session(string.format("Session using SocketStream [%s]", socket_file), 
function ()
+   child_session = Session.new(ChildProcessStream.spawn({
+-    nvim_prog, '-u', 'NONE', '--embed',
++    nvim_prog, '-u', 'NONE', '--embed', '--headless',
+     '--cmd', string.format('call serverstart("%s")', socket_file)
+   }))
+   child_session:request('vim_eval', '1') -- wait for nvim to start
+@@ -193,7 +193,7 @@ end)
+ -- Session using TcpStream
+ test_session("Session using TcpStream", function ()
+   child_session = Session.new(ChildProcessStream.spawn({
+-    nvim_prog, '-u', 'NONE', '--embed',
++    nvim_prog, '-u', 'NONE', '--embed', '--headless',
+     '--cmd', 'call serverstart("127.0.0.1:6666")'
+   }))
+ 
+-- 
+2.20.1
+
diff -Nru lua-nvim-0.1.0-1/debian/patches/series 
lua-nvim-0.1.0-1/debian/patches/series
--- lua-nvim-0.1.0-1/debian/patches/series      2018-06-11 20:44:29.000000000 
-0400
+++ lua-nvim-0.1.0-1/debian/patches/series      2019-03-04 21:12:53.000000000 
-0500
@@ -0,0 +1 @@
+0001-Use-embed-headless-for-Socket-TcpStream-session-test.patch

Reply via email to