From: Eric S. Raymond Date: Fri, 7 Nov 2014 18:01:09 +0000 (-0500) Subject: Regression tests for list and log succeeded. X-Git-Tag: 0.2~47 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=04eaddf221391be4250f0a7f51bb66479c470fd5;p=src.git Regression tests for list and log succeeded. --- diff --git a/src b/src index a9299b7..306ce56 100755 --- a/src +++ b/src @@ -8,8 +8,11 @@ version=0.1 def screenwidth(): "Return the current width of the terminal window." - with popen_or_die(b'stty size', b"rb") as tp: - return int(tp.read().split()[1]) + if pseudotime: + return 79 + else: + with popen_or_die(b'stty size', b"rb") as tp: + return int(tp.read().split()[1]) def rfc3339(t): "RFC3339 string from Unix time." diff --git a/srctest b/srctest index 585ad72..c5db2b8 100755 --- a/srctest +++ b/srctest @@ -42,14 +42,30 @@ src $TESTOPTS cat testfile1 | diff testfile1 - check "content check after second commit" cat >testfile2 <testfile3 - diff testfile2 testfile3 check "list test" +cat >testfile2 <testfile3 +diff testfile2 testfile3 +check "log test" + + + + # end