commit:     1320862b141f7a7e4ce7e39e31e80dc5d0900571
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 30 07:48:14 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Mar 30 07:48:14 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=1320862b

tests/qlop: adapt date parsing test to adhere to SUSv3

The strptime function is documented to require whitespace between any
two conversion specifications, so test like that.

Bug: https://bugs.gentoo.org/638032

 tests/qlop/dotest | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/qlop/dotest b/tests/qlop/dotest
index 0275d45..ea4052d 100755
--- a/tests/qlop/dotest
+++ b/tests/qlop/dotest
@@ -37,9 +37,10 @@ test 04 0 "qlop -l gcc -f ${as}/sync.log"
 # verify atom version parsing works
 test 05 0 "qlop -l '<gcc-5' -f ${as}/sync.log"
 
-# check date time parser
+# check date time parser, note on date parsing,
+# https://bugs.gentoo.org/638032#c6 so the format %d%Y%m isn't compliant
 test 06 0 "qlop -l -f ${as}/sync.log -d 2005-01-01"
-test 07 0 "qlop -l -f ${as}/sync.log -d '%d%Y%m|01200501'"
+test 07 0 "qlop -l -f ${as}/sync.log -d '%d %Y %m|01 2005 01'"
 test 08 0 "qlop -l -f ${as}/sync.log -d 1104898893"
 
 cleantmpdir

Reply via email to