From 04eaddf221391be4250f0a7f51bb66479c470fd5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 7 Nov 2014 13:01:09 -0500 Subject: [PATCH] Regression tests for list and log succeeded. --- src | 7 +++++-- srctest | 20 ++++++++++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) 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 -- 2.43.0