Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nmpolicy.spec'], chrootPath='/var/lib/mock/centos-stream-9-x86_64-1651836036.881960/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b6a752b6eedd4c55aab8f3a16426fd5d', '-D', '/var/lib/mock/centos-stream-9-x86_64-1651836036.881960/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nmpolicy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1651795200 Wrote: /builddir/build/SRPMS/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nmpolicy.spec'], chrootPath='/var/lib/mock/centos-stream-9-x86_64-1651836036.881960/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'afcc56064bbd42078c19e4fb0375dbc2', '-D', '/var/lib/mock/centos-stream-9-x86_64-1651836036.881960/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.b6k8jlno:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nmpolicy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1651795200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rffadb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nmpolicy-v0.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/nmpolicy-v0.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nmpolicy-v0.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JUPAou + umask 022 + cd /builddir/build/BUILD + cd nmpolicy-v0.2.1 + make build ./scripts/make.sh --build go: downloading github.com/spf13/cobra v1.3.0 go: downloading sigs.k8s.io/yaml v1.3.0 go: downloading gopkg.in/yaml.v2 v2.4.0 go: downloading github.com/spf13/pflag v1.0.5 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.iABZmQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 + cd nmpolicy-v0.2.1 + install -Dpm 0755 .out/nmpolicyctl /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64/usr/bin/nmpolicyctl + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ffEHQK + umask 022 + cd /builddir/build/BUILD + cd nmpolicy-v0.2.1 + make unit-test ./scripts/make.sh --unit-test go: downloading github.com/stretchr/testify v1.7.0 go: downloading github.com/davecgh/go-spew v1.1.1 go: downloading github.com/pmezard/go-difflib v1.0.0 go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ? github.com/nmstate/nmpolicy/nmpolicy [no test files] ? github.com/nmstate/nmpolicy/nmpolicy/internal [no test files] === RUN TestTeminalDeepEqual --- PASS: TestTeminalDeepEqual (0.00s) === RUN TestYAML --- PASS: TestYAML (0.00s) === RUN TestFilterString --- PASS: TestFilterString (0.00s) === RUN TestReplaceString --- PASS: TestReplaceString (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/ast 0.011s === RUN TestCaptureEntry === RUN TestCaptureEntry/test_CaptureEntry === RUN TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_success === RUN TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_lex_failure === RUN TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_parser_failure === RUN TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_resolver_failure --- PASS: TestCaptureEntry (0.00s) --- PASS: TestCaptureEntry/test_CaptureEntry (0.00s) --- PASS: TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_success (0.00s) --- PASS: TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_lex_failure (0.00s) --- PASS: TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_parser_failure (0.00s) --- PASS: TestCaptureEntry/test_CaptureEntry/ResolveCaptureEntryPath_resolver_failure (0.00s) === RUN TestBasicPolicy === RUN TestBasicPolicy/Capture === RUN TestBasicPolicy/Capture/resolve_with_no_expression === RUN TestBasicPolicy/Capture/resolve_with_no_cache_and_state === RUN TestBasicPolicy/Capture/resolve_with_all_captures_cached === RUN TestBasicPolicy/Capture/resolve_expressions === RUN TestBasicPolicy/Capture/resolve_with_expressions_and_partial_cache === RUN TestBasicPolicy/Capture/resolve_with_cache_that_is_not_included_in_the_expressions === RUN TestBasicPolicy/Capture/resolve_fails_due_to_lexing === RUN TestBasicPolicy/Capture/resolve_fails_due_to_parsing === RUN TestBasicPolicy/Capture/resolve_fails_due_to_resolving --- PASS: TestBasicPolicy (0.00s) --- PASS: TestBasicPolicy/Capture (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_with_no_expression (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_with_no_cache_and_state (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_with_all_captures_cached (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_expressions (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_with_expressions_and_partial_cache (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_with_cache_that_is_not_included_in_the_expressions (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_fails_due_to_lexing (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_fails_due_to_parsing (0.00s) --- PASS: TestBasicPolicy/Capture/resolve_fails_due_to_resolving (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/capture 0.016s === RUN TestExpanderCapturesAreMapValues --- PASS: TestExpanderCapturesAreMapValues (0.00s) === RUN TestExpanderCaptureIsTopLevel --- PASS: TestExpanderCaptureIsTopLevel (0.00s) === RUN TestExpanderResolveCaptureFails --- PASS: TestExpanderResolveCaptureFails (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/expander 0.007s === RUN TestSource === RUN TestSource/snippet_of_'012345678'_at_'5' === RUN TestSource/snippet_of_'012345678'_at_'-3' === RUN TestSource/snippet_of_'012345678'_at_'10' === RUN TestSource/snippet_of_''_at_'10' --- PASS: TestSource (0.00s) --- PASS: TestSource/snippet_of_'012345678'_at_'5' (0.00s) --- PASS: TestSource/snippet_of_'012345678'_at_'-3' (0.00s) --- PASS: TestSource/snippet_of_'012345678'_at_'10' (0.00s) --- PASS: TestSource/snippet_of_''_at_'10' (0.00s) === RUN TestError --- PASS: TestError (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/expression 0.007s === RUN TestLexer === RUN TestLexer/basic_expressions === RUN TestLexer/basic_expressions/____ === RUN TestLexer/basic_expressions/____31____03___ === RUN TestLexer/basic_expressions/_"foobar1"_"foo_1_bar"____"_foo_bar_-_"_'_bar_foo'_789_""_ === RUN TestLexer/basic_expressions/_foo_f1-o-o_fo-o-o1__ === RUN TestLexer/basic_expressions/_._foo1.dar1.0.dar2:=foo3_._dar3_..._moo3+boo3|doo3 === RUN TestLexer/basic_expressions/_._foo1.dar1:=foo2_._dar2_..._moo3+boo3|doo3_==_:=_:= === RUN TestLexer/basic_expressions/foo1.3|foo2 === RUN TestLexer/failures === RUN TestLexer/failures/foo=bar === RUN TestLexer/failures/_foo_1foo_ === RUN TestLexer/failures/_foo_-foo_ === RUN TestLexer/failures/_"bar1"_"foo_dar === RUN TestLexer/failures/_"bar1"_'foo_dar === RUN TestLexer/failures/155_-44 === RUN TestLexer/failures/255_1,3 === RUN TestLexer/failures/355_1e3 === RUN TestLexer/failures/455_0xEA === RUN TestLexer/failures/555_2,3-4 === RUN TestLexer/failures/655_3333_444_333 === RUN TestLexer/failures/755_33_44_-.3 === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/routes.running.destination=="0.0.0.0/0" === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/routes.running.next-hop-interface==capturer.default-gw.routes.running.0.next-hop-interface === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/interfaces.name==capturer.default-gw.routes.running.0.next-hop-interface === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.base-iface-routes_|_routes.running.next-hop-interface:="br1" === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.base-iface-route_|_routes.running.state:="absent" === RUN TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.delete-primary-nic-routes.routes.running_+_capturer.bridge-routes.routes.running --- PASS: TestLexer (0.00s) --- PASS: TestLexer/basic_expressions (0.00s) --- PASS: TestLexer/basic_expressions/____ (0.00s) --- PASS: TestLexer/basic_expressions/____31____03___ (0.00s) --- PASS: TestLexer/basic_expressions/_"foobar1"_"foo_1_bar"____"_foo_bar_-_"_'_bar_foo'_789_""_ (0.00s) --- PASS: TestLexer/basic_expressions/_foo_f1-o-o_fo-o-o1__ (0.00s) --- PASS: TestLexer/basic_expressions/_._foo1.dar1.0.dar2:=foo3_._dar3_..._moo3+boo3|doo3 (0.00s) --- PASS: TestLexer/basic_expressions/_._foo1.dar1:=foo2_._dar2_..._moo3+boo3|doo3_==_:=_:= (0.00s) --- PASS: TestLexer/basic_expressions/foo1.3|foo2 (0.00s) --- PASS: TestLexer/failures (0.00s) --- PASS: TestLexer/failures/foo=bar (0.00s) --- PASS: TestLexer/failures/_foo_1foo_ (0.00s) --- PASS: TestLexer/failures/_foo_-foo_ (0.00s) --- PASS: TestLexer/failures/_"bar1"_"foo_dar (0.00s) --- PASS: TestLexer/failures/_"bar1"_'foo_dar (0.00s) --- PASS: TestLexer/failures/155_-44 (0.00s) --- PASS: TestLexer/failures/255_1,3 (0.00s) --- PASS: TestLexer/failures/355_1e3 (0.00s) --- PASS: TestLexer/failures/455_0xEA (0.00s) --- PASS: TestLexer/failures/555_2,3-4 (0.00s) --- PASS: TestLexer/failures/655_3333_444_333 (0.00s) --- PASS: TestLexer/failures/755_33_44_-.3 (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/routes.running.destination=="0.0.0.0/0" (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/routes.running.next-hop-interface==capturer.default-gw.routes.running.0.next-hop-interface (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/interfaces.name==capturer.default-gw.routes.running.0.next-hop-interface (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.base-iface-routes_|_routes.running.next-hop-interface:="br1" (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.base-iface-route_|_routes.running.state:="absent" (0.00s) --- PASS: TestLexer/linux_bridge_at_the_default_gateway_scenario/capturer.delete-primary-nic-routes.routes.running_+_capturer.bridge-routes.routes.running (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/lexer 0.008s === RUN TestReader === RUN TestReader/#00 === RUN TestReader/foo_bar_dar scanner_test.go:54: Calling Prev go back to previous rune and position, r: "f", p: 0 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "o", p: 1 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "o", p: 2 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 3 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "b", p: 4 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "a", p: 5 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "r", p: 6 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 7 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "d", p: 8 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "a", p: 9 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: "r", p: 10 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next === RUN TestReader/____ scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 0 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 1 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 2 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next scanner_test.go:54: Calling Prev go back to previous rune and position, r: " ", p: 3 scanner_test.go:63: Calling Prev twice fail scanner_test.go:67: Going back to next --- PASS: TestReader (0.00s) --- PASS: TestReader/#00 (0.00s) --- PASS: TestReader/foo_bar_dar (0.00s) --- PASS: TestReader/____ (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/lexer/scanner 0.007s === RUN TestParser === RUN TestParser/#00 === RUN TestParser/#01 === RUN TestParser/routes.running.destination === RUN TestParser/routes.running.destination==0.0.0.0/0 === RUN TestParser/routes.running.next-hop-interface==capture.default-gw.routes.0.next-hop-interface === RUN TestParser/routes.running.next-hop-interface:=br1 === RUN TestParser/routes.running.next-hop-interface:=capture.primary-nic.interfaces.0.name === RUN TestParser/capture.default-gw|routes.running.next-hop-interface:=br1 === RUN TestParser/invalid_expression:_unexpected_token_`.`_|_._|_^ === RUN TestParser/invalid_path:_missing_identity_or_number_after_dot_|_routes._|_......^ === RUN TestParser/invalid_path:_missing_dot_|_routesdestination_|_......^ === RUN TestParser/invalid_path:_missing_identity_or_number_after_dot_|_routes..destination_|_.......^ === RUN TestParser/invalid_equality_filter:_missing_left_hand_argument_|_==0.0.0.0/0_|_^ === RUN TestParser/invalid_equality_filter:_left_hand_argument_is_not_a_path_|_foo==0.0.0.0/0_|_...^ === RUN TestParser/invalid_equality_filter:_missing_right_hand_argument_|_routes.running.destination==_|_...........................^ === RUN TestParser/invalid_equality_filter:_right_hand_argument_is_not_a_string_or_identity_|_routes.running.destination====_|_............................^ === RUN TestParser/invalid_pipe:_missing_pipe_in_expression_|_|routes.running.next-hop-interface:=br1_|_^ === RUN TestParser/invalid_pipe:_missing_pipe_out_expression_|_capture.default-gw|_|_..................^ === RUN TestParser/invalid_pipe:_only_paths_can_be_piped_in_|_foo|routes.running.next-hop-interface:=br1_|_...^ === RUN TestParser/invalid_replace:_missing_left_hand_argument_|_:=0.0.0.0/0_|_^ === RUN TestParser/invalid_replace:_left_hand_argument_is_not_a_path_|_foo:=0.0.0.0/0_|_...^ === RUN TestParser/invalid_replace:_missing_right_hand_argument_|_routes.running.destination:=_|_...........................^ === RUN TestParser/invalid_replace:_right_hand_argument_is_not_a_string_or_identity_|_routes.running.destination:=:=_|_............................^ --- PASS: TestParser (0.00s) --- PASS: TestParser/#00 (0.00s) --- PASS: TestParser/#01 (0.00s) --- PASS: TestParser/routes.running.destination (0.00s) --- PASS: TestParser/routes.running.destination==0.0.0.0/0 (0.00s) --- PASS: TestParser/routes.running.next-hop-interface==capture.default-gw.routes.0.next-hop-interface (0.00s) --- PASS: TestParser/routes.running.next-hop-interface:=br1 (0.00s) --- PASS: TestParser/routes.running.next-hop-interface:=capture.primary-nic.interfaces.0.name (0.00s) --- PASS: TestParser/capture.default-gw|routes.running.next-hop-interface:=br1 (0.00s) --- PASS: TestParser/invalid_expression:_unexpected_token_`.`_|_._|_^ (0.00s) --- PASS: TestParser/invalid_path:_missing_identity_or_number_after_dot_|_routes._|_......^ (0.00s) --- PASS: TestParser/invalid_path:_missing_dot_|_routesdestination_|_......^ (0.00s) --- PASS: TestParser/invalid_path:_missing_identity_or_number_after_dot_|_routes..destination_|_.......^ (0.00s) --- PASS: TestParser/invalid_equality_filter:_missing_left_hand_argument_|_==0.0.0.0/0_|_^ (0.00s) --- PASS: TestParser/invalid_equality_filter:_left_hand_argument_is_not_a_path_|_foo==0.0.0.0/0_|_...^ (0.00s) --- PASS: TestParser/invalid_equality_filter:_missing_right_hand_argument_|_routes.running.destination==_|_...........................^ (0.00s) --- PASS: TestParser/invalid_equality_filter:_right_hand_argument_is_not_a_string_or_identity_|_routes.running.destination====_|_............................^ (0.00s) --- PASS: TestParser/invalid_pipe:_missing_pipe_in_expression_|_|routes.running.next-hop-interface:=br1_|_^ (0.00s) --- PASS: TestParser/invalid_pipe:_missing_pipe_out_expression_|_capture.default-gw|_|_..................^ (0.00s) --- PASS: TestParser/invalid_pipe:_only_paths_can_be_piped_in_|_foo|routes.running.next-hop-interface:=br1_|_...^ (0.00s) --- PASS: TestParser/invalid_replace:_missing_left_hand_argument_|_:=0.0.0.0/0_|_^ (0.00s) --- PASS: TestParser/invalid_replace:_left_hand_argument_is_not_a_path_|_foo:=0.0.0.0/0_|_...^ (0.00s) --- PASS: TestParser/invalid_replace:_missing_right_hand_argument_|_routes.running.destination:=_|_...........................^ (0.00s) --- PASS: TestParser/invalid_replace:_right_hand_argument_is_not_a_string_or_identity_|_routes.running.destination:=:=_|_............................^ (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/parser 0.010s === RUN TestFilter === RUN TestFilter/Resolve_Filter === RUN TestFilter/Resolve_Filter/Filter_map,_list_on_second_path_identity === RUN TestFilter/Resolve_Filter/Filter_map,_list_on_first_path_identity === RUN TestFilter/Resolve_Filter/Filter_list === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference#01 === RUN TestFilter/Resolve_Filter/Filter_list_with_non_existing_capture_reference === RUN TestFilter/Resolve_Filter/Filter_list_with_non_existing_capture_reference#01 === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_path_with_not_found_identity_step === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_path_with_not_found_numeric_step === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_invalid_identity_path_step === RUN TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_invalid_numeric_path_step === RUN TestFilter/Resolve_Filter/Filter_different_type_on_path === RUN TestFilter/Resolve_Filter/Filter_optional_field === RUN TestFilter/Resolve_Filter/Filter_list_with_path_as_third_argument_without_capture_reference === RUN TestFilter/Resolve_Filter/Filter_list_with_invalid_input_source === RUN TestFilter/Resolve_Filter/Filter_list_with_invalid_input_source#01 === RUN TestFilter/Resolve_Filter/Filter_list_with_non_existing_path === RUN TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_currentState_with_string_value === RUN TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_capture_reference_with_string_value === RUN TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_capture_reference_with_capture_reference_value === RUN TestFilter/Resolve_Filter/Replace_optional_field --- PASS: TestFilter (0.02s) --- PASS: TestFilter/Resolve_Filter (0.02s) --- PASS: TestFilter/Resolve_Filter/Filter_map,_list_on_second_path_identity (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_map,_list_on_first_path_identity (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference#01 (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_non_existing_capture_reference (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_non_existing_capture_reference#01 (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_path_with_not_found_identity_step (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_path_with_not_found_numeric_step (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_invalid_identity_path_step (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_capture_reference_and_invalid_numeric_path_step (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_different_type_on_path (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_optional_field (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_path_as_third_argument_without_capture_reference (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_invalid_input_source (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_invalid_input_source#01 (0.00s) --- PASS: TestFilter/Resolve_Filter/Filter_list_with_non_existing_path (0.00s) --- PASS: TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_currentState_with_string_value (0.00s) --- PASS: TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_capture_reference_with_string_value (0.00s) --- PASS: TestFilter/Resolve_Filter/Replace_list_of_structs_field_from_capture_reference_with_capture_reference_value (0.00s) --- PASS: TestFilter/Resolve_Filter/Replace_optional_field (0.00s) PASS ok github.com/nmstate/nmpolicy/nmpolicy/internal/resolver 0.022s ? github.com/nmstate/nmpolicy/nmpolicy/internal/types [no test files] ? github.com/nmstate/nmpolicy/nmpolicy/internal/types/typestest [no test files] ? github.com/nmstate/nmpolicy/nmpolicy/types [no test files] ? github.com/nmstate/nmpolicy/nmpolicy/types/typestest [no test files] + make integration-test ./scripts/make.sh --integration-test === RUN TestExamples === RUN TestExamples/all-linux-bridges-down === RUN TestExamples/bridge-on-default-gw-dhcp === RUN TestExamples/bridge-on-default-gw-no-dhcp === RUN TestExamples/ovs-slb-bond-primary-secondary --- PASS: TestExamples (0.02s) --- PASS: TestExamples/all-linux-bridges-down (0.00s) --- PASS: TestExamples/bridge-on-default-gw-dhcp (0.00s) --- PASS: TestExamples/bridge-on-default-gw-no-dhcp (0.00s) --- PASS: TestExamples/ovs-slb-bond-primary-secondary (0.00s) === RUN TestNmstatectl === RUN TestNmstatectl/Basic_policy === RUN TestNmstatectl/Basic_policy/is_empty_cmd === RUN TestNmstatectl/Basic_policy/with_only_desired_state === RUN TestNmstatectl/Basic_policy/with_all_captures_cached_and_desired_state_that_has_no_ref === RUN TestNmstatectl/Basic_policy/without_cache === RUN TestNmstatectl/Basic_policy/with_full_cache === RUN TestNmstatectl/Basic_policy/with_partial_cache === RUN TestNmstatectl/Basic_policy/with_no_cache_all_the_timestamps_should_be_the_same === RUN TestNmstatectl/Basic_policy/with_lexer_error === RUN TestNmstatectl/Basic_policy/with_parser_error === RUN TestNmstatectl/Basic_policy/with_resolver_error --- PASS: TestNmstatectl (0.30s) --- PASS: TestNmstatectl/Basic_policy (0.06s) --- PASS: TestNmstatectl/Basic_policy/is_empty_cmd (0.00s) --- PASS: TestNmstatectl/Basic_policy/with_only_desired_state (0.00s) --- PASS: TestNmstatectl/Basic_policy/with_all_captures_cached_and_desired_state_that_has_no_ref (0.00s) --- PASS: TestNmstatectl/Basic_policy/without_cache (0.01s) --- PASS: TestNmstatectl/Basic_policy/with_full_cache (0.01s) --- PASS: TestNmstatectl/Basic_policy/with_partial_cache (0.01s) --- PASS: TestNmstatectl/Basic_policy/with_no_cache_all_the_timestamps_should_be_the_same (0.01s) --- PASS: TestNmstatectl/Basic_policy/with_lexer_error (0.00s) --- PASS: TestNmstatectl/Basic_policy/with_parser_error (0.00s) --- PASS: TestNmstatectl/Basic_policy/with_resolver_error (0.00s) PASS ok github.com/nmstate/nmpolicy/tests 0.320s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 warning: Missing build-id in /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64/usr/bin/nmpolicyctl Provides: nmpolicy = v0.2.1 nmpolicy = v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9 nmpolicy(x86-64) = v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.34)(64bit) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 Wrote: /builddir/build/RPMS/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.PFN5jO + umask 022 + cd /builddir/build/BUILD + cd nmpolicy-v0.2.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/nmpolicy-v0.2.1-1.20220506111911002100.main.8.g2ffc142.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0