More correctly implement ends with label sequence check

string.endswith("label.sequence") doesn't check for the implict
period before "label.sequence" when matching longer strings.

"foo.label.sequence" should match but "foolabel.sequence shouldn't".

(cherry picked from commit f79876b2)
79 jobs for !5329 with 2665-qname-minimization-disabled-after-first-resolution-v9_16 in 18 minutes and 11 seconds (queued for 10 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed autoreconf #1926525
amd64 linux

00:00:17

passed clang-format #1926527
amd64 linux

00:00:17

passed coccinelle #1926528
amd64 linux

00:03:54

passed danger #1926529
amd64 linux

00:00:20

passed misc #1926526
amd64 linux

00:00:14

passed tarball-create #1926530
amd64 linux

00:00:19

 
  Build
passed clang:asan #1926544
amd64 linux

00:04:00

passed clang:buster:amd64 #1926548
amd64 linux

00:01:50

passed clang:freebsd12:amd64 #1926551
amd64 libvirt

00:01:46

passed clang:freebsd13:amd64 #1926552
amd64 libvirt

00:03:35

passed clang:openbsd:amd64 #1926553
amd64 libvirt

00:03:24

passed clang:tsan #1926546
amd64 linux

00:02:15

passed gcc:alpine3.14:amd64 #1926531
amd64 linux

00:01:48

passed gcc:asan #1926543
amd64 linux

00:03:11

passed gcc:bionic:amd64 #1926541
amd64 linux

00:01:48

passed gcc:buster:amd64 #1926535
amd64 linux

00:01:19

passed gcc:buster:amd64cross32 #1926536
amd64 linux

00:01:42

passed gcc:centos7:amd64 #1926532
amd64 linux

00:01:20

passed gcc:centos8:amd64 #1926533
amd64 linux

00:01:26

passed gcc:focal:amd64 #1926542
amd64 linux

00:01:29

passed gcc:mutexatomics #1926547
amd64 linux

00:01:28

passed gcc:out-of-tree #1926538
amd64 linux

00:01:28

passed gcc:sid:amd64 #1926537
amd64 linux

00:01:58

passed gcc:softhsm2.4 #1926549
amd64 linux

00:01:28

passed gcc:softhsm2.6 #1926550
amd64 linux

00:01:34

passed gcc:stretch:amd64 #1926534
amd64 linux

00:01:49

passed gcc:tarball #1926539
amd64 linux

00:01:55

passed gcc:tsan #1926545
amd64 linux

00:01:56

passed gcc:tumbleweed:amd64 #1926540
amd64 linux

00:01:33

passed msvc:windows:amd64 #1926555
amd64 windows

00:01:03

passed nolibtool:sid:amd64 #1926554
amd64 linux

00:02:10

 
  Unit
passed unit:clang:asan #1926567
amd64 linux

00:01:08

passed unit:clang:buster:amd64 #1926571
amd64 linux

00:00:34

passed unit:clang:freebsd12:amd64 #1926574
amd64 libvirt

00:00:59

passed unit:clang:freebsd13:amd64 #1926575
amd64 libvirt

00:02:49

passed unit:clang:tsan #1926569
amd64 linux

00:01:35

passed unit:gcc:alpine3.14:amd64 #1926556
amd64 linux

00:01:05

passed unit:gcc:asan #1926566
amd64 linux

00:01:09

passed unit:gcc:bionic:amd64 #1926564
amd64 linux

00:00:37

passed unit:gcc:buster:amd64 #1926560
amd64 linux

00:00:57

passed unit:gcc:buster:amd64cross32 #1926561
amd64 linux

00:00:38

passed unit:gcc:centos7:amd64 #1926557
linux amd64

00:00:38

passed unit:gcc:centos8:amd64 #1926558
amd64 linux

00:00:39

passed unit:gcc:focal:amd64 #1926565
amd64 linux

00:00:39

passed unit:gcc:mutexatomics #1926570
amd64 linux

00:00:39

passed unit:gcc:sid:amd64 #1926562
amd64 linux

00:00:36

passed unit:gcc:softhsm2.4 #1926572
amd64 linux

00:00:39

passed unit:gcc:softhsm2.6 #1926573
amd64 linux

00:00:42

passed unit:gcc:stretch:amd64 #1926559
amd64 linux

00:00:34

passed unit:gcc:tsan #1926568
amd64 linux

00:01:50

passed unit:gcc:tumbleweed:amd64 #1926563
amd64 linux

00:00:39

passed unit:nolibtool:sid:amd64 #1926576
amd64 linux

00:01:01

 
  System
passed system:clang:asan #1926588
amd64 linux

00:13:06

passed system:clang:buster:amd64 #1926592
amd64 linux

00:10:33

passed system:clang:freebsd12:amd64 #1926595
amd64 libvirt

00:10:50

passed system:clang:freebsd13:amd64 #1926596
amd64 libvirt

00:12:20

passed system:clang:tsan #1926590
amd64 linux

00:15:06

passed system:gcc:alpine3.14:amd64 #1926577
amd64 linux

00:12:19

passed system:gcc:asan #1926587
amd64 linux

00:14:03

passed system:gcc:bionic:amd64 #1926585
amd64 linux

00:09:58

passed system:gcc:buster:amd64 #1926581
amd64 linux

00:13:17

passed system:gcc:buster:amd64cross32 #1926582
amd64 linux

00:10:52

passed system:gcc:centos7:amd64 #1926578
amd64 linux

00:11:13

passed system:gcc:centos8:amd64 #1926579
amd64 linux

00:10:44

passed system:gcc:focal:amd64 #1926586
amd64 linux

00:10:43

passed system:gcc:mutexatomics #1926591
amd64 linux

00:10:42

passed system:gcc:sid:amd64 #1926583
amd64 linux

00:10:30

passed system:gcc:softhsm2.4 #1926593
amd64 linux

00:10:35

passed system:gcc:softhsm2.6 #1926594
amd64 linux

00:10:33

passed system:gcc:stretch:amd64 #1926580
amd64 linux

00:10:32

passed system:gcc:tsan #1926589
amd64 linux

00:15:32

passed system:gcc:tumbleweed:amd64 #1926584
amd64 linux

00:10:41

passed system:nolibtool:sid:amd64 #1926597
amd64 linux

00:12:15

 
  Docs
passed docs #1926598
amd64 linux

00:02:13

 
  Postcheck
passed cppcheck #1926602
amd64 linux

00:00:21

passed flake8 #1926599
amd64 linux

00:00:18

passed gcov #1926603
amd64 linux

00:00:33

76.0%
passed pylint #1926600
amd64 linux

00:00:26

passed scan-build #1926601
amd64 linux

00:10:42