1 |
commit: 1320862b141f7a7e4ce7e39e31e80dc5d0900571 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 30 07:48:14 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 30 07:48:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=1320862b |
7 |
|
8 |
tests/qlop: adapt date parsing test to adhere to SUSv3 |
9 |
|
10 |
The strptime function is documented to require whitespace between any |
11 |
two conversion specifications, so test like that. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/638032 |
14 |
|
15 |
tests/qlop/dotest | 5 +++-- |
16 |
1 file changed, 3 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/tests/qlop/dotest b/tests/qlop/dotest |
19 |
index 0275d45..ea4052d 100755 |
20 |
--- a/tests/qlop/dotest |
21 |
+++ b/tests/qlop/dotest |
22 |
@@ -37,9 +37,10 @@ test 04 0 "qlop -l gcc -f ${as}/sync.log" |
23 |
# verify atom version parsing works |
24 |
test 05 0 "qlop -l '<gcc-5' -f ${as}/sync.log" |
25 |
|
26 |
-# check date time parser |
27 |
+# check date time parser, note on date parsing, |
28 |
+# https://bugs.gentoo.org/638032#c6 so the format %d%Y%m isn't compliant |
29 |
test 06 0 "qlop -l -f ${as}/sync.log -d 2005-01-01" |
30 |
-test 07 0 "qlop -l -f ${as}/sync.log -d '%d%Y%m|01200501'" |
31 |
+test 07 0 "qlop -l -f ${as}/sync.log -d '%d %Y %m|01 2005 01'" |
32 |
test 08 0 "qlop -l -f ${as}/sync.log -d 1104898893" |
33 |
|
34 |
cleantmpdir |