Patchwork [4,of,4,V2] test-commit-interactive-curses: #require 'tic'

login
register
mail settings
Submitter Matt Harbison
Date March 18, 2015, 2:24 a.m.
Message ID <2485f2538e2195b28530.1426645487@Envy>
Download mbox | patch
Permalink /patch/8144/
State Accepted
Commit 852801178a63c7fc088a02f5991071bada4503ae
Headers show

Comments

Matt Harbison - March 18, 2015, 2:24 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1426645269 14400
#      Tue Mar 17 22:21:09 2015 -0400
# Node ID 2485f2538e2195b28530afab507c693c56509cef
# Parent  2ff741cad10c73e21d39e06b8a13fa307256c13b
test-commit-interactive-curses: #require 'tic'

When run on Windows, this test aborts:

@@ -20,7 +20,8 @@
   > X
   > EOF
   $ hg commit -i  -m "a" -d "0 0"
-  no changes to record
+  abort: No module named fcntl!
+  [255]
   $ hg tip
   changeset:   -1:000000000000
   tag:         tip

Maybe there's another way to get the screen size on Windows (it dies in
crecord.gethw()), but for now, quiet the test noise by skipping it if terminal
info compiler is unavailable.
Matt Mackall - March 18, 2015, 9:30 p.m.
On Tue, 2015-03-17 at 22:24 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1426645269 14400
> #      Tue Mar 17 22:21:09 2015 -0400
> # Node ID 2485f2538e2195b28530afab507c693c56509cef
> # Parent  2ff741cad10c73e21d39e06b8a13fa307256c13b
> test-commit-interactive-curses: #require 'tic'

These are queued for default, thanks. I've fixed foozy's copy of seq.py
in flight.

Patch

diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t
+++ b/tests/test-commit-interactive-curses.t
@@ -1,3 +1,4 @@ 
+#require tic
 Set up a repo
 
   $ cat <<EOF >> $HGRCPATH