Mock Version: 3.1 Mock Version: 3.1 Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/bats.spec'], chrootPath='/var/lib/mock/epel9-build-38080069-4821141/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=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/bats.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'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1663286400 Wrote: /builddir/build/SRPMS/bats-1.8.0-1.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/bats.spec'], chrootPath='/var/lib/mock/epel9-build-38080069-4821141/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=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/bats.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'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1663286400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lvoeOy + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bats-core-1.8.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/bats-core-1.8.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bats-core-1.8.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.lvXd7Z + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch ++ dirname /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch + cd bats-core-1.8.0 + ./install.sh /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr Installed Bats to /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/bin/bats + /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 mangling shebang in /usr/bin/bats from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-exec-file from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-exec-suite from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-exec-test from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-format-cat from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-format-junit from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-format-pretty from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-format-tap from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-format-tap13 from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/libexec/bats-core/bats-preprocess from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/common.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/formatter.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/preprocessing.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/semaphore.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/test_functions.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/tracing.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/validator.bash from /usr/bin/env bash to #!/usr/bin/bash mangling shebang in /usr/lib/bats-core/warnings.bash from /usr/bin/env bash to #!/usr/bin/bash Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.WwqBlW + umask 022 + cd /builddir/build/BUILD + cd bats-core-1.8.0 + ./bin/bats test 1..274 ok 1 no arguments prints message and usage instructions ok 2 invalid option prints message and usage instructions ok 3 -v and --version print version number ok 4 -h and --help print help ok 5 invalid filename prints an error ok 6 empty test file runs zero tests ok 7 one passing test ok 8 summary passing tests ok 9 summary passing and skipping tests ok 10 summary passing and failing tests ok 11 summary passing, failing and skipping tests ok 12 BATS_CWD is correctly set to PWD as validated by bats_trim_filename ok 13 one failing test ok 14 one failing and one passing test ok 15 failing test with significant status ok 16 failing helper function logs the test case's line number ok 17 failing bash condition logs correct line number ok 18 failing bash expression logs correct line number ok 19 failing negated command logs correct line number ok 20 test environments are isolated ok 21 setup is run once before each test ok 22 teardown is run once after each test, even if it fails ok 23 setup failure ok 24 passing test with teardown failure ok 25 failing test with teardown failure ok 26 teardown failure with significant status ok 27 failing test file outside of BATS_CWD ok 28 output is discarded for passing tests and printed for failing tests ok 29 -c prints the number of tests ok 30 dash-e is not mangled on beginning of line ok 31 dos line endings are stripped before testing ok 32 test file without trailing newline ok 33 skipped tests ok 34 extended syntax ok 35 timing syntax ok 36 extended timing syntax ok 37 time is greater than 0ms for long test ok 38 single-line tests ok 39 testing IFS not modified by run ok 40 expand variables in test name ok 41 handle quoted and unquoted test names ok 42 ensure compatibility with unofficial Bash strict mode ok 43 parse @test lines with various whitespace combinations ok 44 duplicate tests error and generate a warning on stderr ok 45 sourcing a nonexistent file in setup produces error output ok 46 referencing unset parameter in setup produces error output ok 47 sourcing a nonexistent file in test produces error output ok 48 referencing unset parameter in test produces error output ok 49 sourcing a nonexistent file in teardown produces error output ok 50 referencing unset parameter in teardown produces error output ok 51 execute exported function without breaking failing test output ok 52 output printed even when no final newline ok 53 run tests which consume stdin (see #197) ok 54 report correct line on unset variables ok 55 report correct line on external function calls ok 56 test count validator catches mismatch and returns non zero ok 57 running the same file twice runs its tests twice without errors ok 58 Don't use unbound variables inside bats (issue #340) ok 59 filenames with tab can be used ok 60 each file is evaluated n+1 times ok 61 Don't hang on CTRL-C (issue #353) ok 62 test comment style ok 63 test works even if PATH is reset ok 64 Test nounset does not trip up bats' internals (see #385) ok 65 run tmpdir is cleaned up by default ok 66 run tmpdir is not cleanup up with --no-cleanup-tempdir ok 67 run should exit if tmpdir exist ok 68 run should exit if TMPDIR can't be created ok 69 Fail if BATS_TMPDIR does not exist or is not writable ok 70 Setting BATS_TMPDIR is ignored ok 71 Parallel mode works on MacOS with over subscription (issue #433) ok 72 Failure in free code (see #399) ok 73 CTRL-C aborts and fails the current test ok 74 CTRL-C aborts and fails the current run ok 75 CTRL-C aborts and fails after run ok 76 CTRL-C aborts and fails the current teardown ok 77 CTRL-C aborts and fails the current setup_file ok 78 CTRL-C aborts and fails the current teardown_file ok 79 single star in output is not treated as a glob ok 80 multiple stars in output are not treated as a glob ok 81 ensure all folders are shellchecked ok 82 BATS_RUN_COMMAND: test content of variable ok 83 --print-output-on-failure works as expected ok 84 --print-output-on-failure also shows stderr (for run --separate-stderr) ok 85 --show-output-of-passing-tests works as expected ok 86 --verbose-run prints output ok 87 BATS_VERBOSE_RUN=1 also prints output ok 88 --gather-test-outputs-in gathers outputs of all tests (even succeeding!) ok 89 --gather-test-outputs-in allows directory to exist (only if empty) ok 90 Tell about missing flock and shlock # skip this test requires flock not to be installed ok 91 Test with a name that is waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay too long # skip This test should only check if the long name chokes bats' internals during execution ok 92 BATS_CODE_QUOTE_STYLE works with any two characters (even unicode) # skip Unicode chars are not counted as one char in this system ok 93 BATS_CODE_QUOTE_STYLE=custom requires BATS_CODE_QUOTE_BEGIN/END ok 94 Warn about invalid BATS_CODE_QUOTE_STYLE ok 95 Debug trap must only override variables that are prefixed with BATS_ (issue #519) ok 96 Don't wait for disowned background jobs to finish because of open FDs (#205) ok 97 Allow for prefixing tests' names with BATS_TEST_NAME_PREFIX ok 98 Setting status in teardown* does not override exit code (see issue #575) ok 99 BATS_* variables don't contain double slashes ok 100 Without .bats/run-logs --filter-status failed returns an error ok 101 Without previous recording --filter-status failed runs all tests and then runs only failed and missed tests ok 102 Without previous recording --filter-status passed runs all tests and then runs only passed and missed tests ok 103 Without previous recording --filter-status missed runs all tests and then runs only missed tests ok 104 --filter-status failed gives warning on empty failed test list ok 105 --filter-status failed does not update list when run is aborted ok 106 BATS_TEST_RETRIES allows for retrying tests ok 107 bats_version_lt ok 108 bats_require_minimum_version ok 109 bats_binary_search ok 110 bats_sort ok 111 bats_all_in ok 112 bats_any_in ok 113 bats_trim ok 114 bats_append_arrays_as_args ok 115 setup_file is run once per file ok 116 teardown_file is run once per file ok 117 setup_file is called correctly in multi file suite ok 118 teardown_file is called correctly in multi file suite ok 119 setup_file failure aborts tests for this file ok 120 teardown_file failure fails at least one test from the file ok 121 teardown_file runs even if any test in the file failed ok 122 teardown_file should run even after user abort via CTRL-C ok 123 setup_file runs even if all tests in the file are skipped ok 124 teardown_file runs even if all tests in the file are skipped ok 125 setup_file must not leak context between tests in the same suite ok 126 teardown_file must not leak context between tests in the same suite ok 127 halfway setup_file errors are caught and reported ok 128 halfway teardown_file errors are ignored ok 129 variables exported in setup_file are visible in tests ok 130 Don't run setup_file for files without tests ok 131 Failure in setup_file and teardown_file still prints error message ok 132 tap passing and skipping tests ok 133 tap passing, failing and skipping tests ok 134 skipped test with parens (pretty formatter) ok 135 pretty and tap formats ok 136 pretty formatter bails on invalid tap ok 137 All formatters (except cat) implement the callback interface ok 138 absolute paths load external formatters ok 139 specifying nonexistent external formatter is an error ok 140 specifying non executable external formatter is an error ok 141 install.sh creates a valid installation, and uninstall.sh undos it ok 142 install.sh creates a multilib valid installation, and uninstall.sh undos it ok 143 uninstall.sh works even if nothing is installed ok 144 install.sh only updates permissions for Bats files ok 145 bin/bats is resilient to symbolic links ok 146 junit formatter with skipped test does not fail ok 147 junit formatter: escapes xml special chars ok 148 junit formatter: test suites ok 149 junit formatter: test suites relative path ok 150 junit formatter: files with the same name are distinguishable ok 151 junit formatter as report formatter creates report.xml ok 152 junit does not mark tests with FD 3 output as failed (issue #360) ok 153 junit does not mark tests with FD 3 output in teardown_file as failed (issue #531) ok 154 don't choke on setup_file errors ok 155 find_in_bats_lib_path recognizes files relative to test file ok 156 find_in_bats_lib_path recognizes files in BATS_LIB_PATH ok 157 find_in_bats_lib_path returns 1 if no load path is found ok 158 find_in_bats_lib_path follows the priority of BATS_LIB_PATH ok 159 load sources scripts relative to the current test file ok 160 load sources relative scripts with filename extension ok 161 load aborts if the specified script does not exist ok 162 load sources scripts by absolute path ok 163 load aborts if the script, specified by an absolute path, does not exist ok 164 load relative script with ambiguous name ok 165 load does not use the BATS_LIB_PATH ok 166 load supports plain symbols ok 167 load doesn't support _declare_d symbols ok 168 load supports scripts on the PATH ok 169 bats_load_library supports libraries with loaders on the BATS_LIB_PATH ok 170 bats_load_library supports libraries with loaders on the BATS_LIB_PATH with multiple libraries ok 171 bats_load_library can handle whitespaces in BATS_LIB_PATH ok 172 bats_load_library errors when a library errors while sourcing ok 173 load in teardown after failure does not prevent test from being counted (see #609) ok 174 parallel test execution with --jobs ok 175 parallel can preserve environment variables ok 176 parallel suite execution with --jobs ok 177 setup_file is not over parallelized ok 178 running the same file twice runs its tests twice without errors ok 179 parallelity factor is met exactly ok 180 parallel mode correctly forwards failure return code ok 181 --no-parallelize-across-files test file detects parallel execution ok 182 --no-parallelize-across-files prevents parallelization across files ok 183 --no-parallelize-across-files does not prevent parallelization within files ok 184 --no-parallelize-within-files test file detects parallel execution ok 185 --no-parallelize-within-files prevents parallelization within files ok 186 --no-parallelize-within-files does not prevent parallelization across files ok 187 BATS_NO_PARALLELIZE_WITHIN_FILE works from inside setup_file() ok 188 BATS_NO_PARALLELIZE_WITHIN_FILE works from outside all functions ok 189 BATS_NO_PARALLELIZE_WITHIN_FILE does not work from inside setup() ok 190 BATS_NO_PARALLELIZE_WITHIN_FILE does not work from inside test function ok 191 Timing printout shows milliseconds ok 192 pretty formatter summary is colorized red on failure ok 193 pretty formatter summary is colorized green on success ok 194 Mixing timing and timeout ok 195 #113: set BATS_ROOT when /bin is a symlink to /usr/bin ok 196 set BATS_ROOT with extreme symlink resolution ok 197 set BATS_ROOT when calling from same dir ok 198 set BATS_ROOT from PATH ok 199 #182 and probably #184 as well ok 200 run --keep-empty-lines preserves leading empty lines ok 201 run --keep-empty-lines preserves inner empty lines ok 202 run --keep-empty-lines preserves trailing empty lines ok 203 run --keep-empty-lines preserves multiple trailing empty lines ok 204 run --keep-empty-lines preserves non-empty trailing line ok 205 --keep-empty-lines has zero lines for empty output (see #573) ok 206 run --separate-stderr splits output ok 207 run does not change set flags ok 208 basic return-code checking ok 209 run exit code check output ok 210 run invalid exit code check error message ok 211 run is not affected by IFS ok 212 run does not change IFS ok 213 running a suite with no test files ok 214 running a suite with one test file ok 215 counting tests in a suite ok 216 aggregated output of multiple tests in a suite ok 217 a failing test in a suite results in an error exit code ok 218 running an ad-hoc suite by specifying multiple test files ok 219 extended syntax in suite ok 220 timing syntax in suite ok 221 extended timing syntax in suite ok 222 recursive support (short option) ok 223 recursive support (long option) ok 224 recursive support with symlinks ok 225 run entire suite when --filter isn't set ok 226 use --filter to run subset of test cases from across the suite ok 227 --filter can handle regular expressions that contain [_- ] ok 228 --filter can handle regular expressions that start with ^ ok 229 skip is handled correctly in setup, test, and teardown ok 230 BATS_TEST_NUMBER starts at 1 in each individual test file ok 231 Override BATS_FILE_EXTENSION with suite ok 232 Override BATS_FILE_EXTENSION with suite recursive ok 233 setup_suite.bash is picked up in toplevel folder of suite ok 234 setup_suite.bash is picked up in folder of first test file ok 235 setup_suite is not picked up from wrongly named file ok 236 setup_suite is picked up from --setup-suite-file ok 237 --setup-suite-file takes precedence over convention ok 238 passing a nonexisting file to --setup-suite-file prints an error message ok 239 setup_suite.bash without setup_suite() is an error ok 240 exported variables from setup_suite are visible in setup_file, setup and @test ok 241 syntax errors in setup_suite.bash are reported and lead to non zero exit code ok 242 errors in setup_suite.bash's free code reported correctly ok 243 errors in setup_suite reported correctly ok 244 errors in teardown_suite reported correctly ok 245 failure in setup_suite skips further setup and suite but runs teardown_suite ok 246 midway failure in teardown_suite does not fail test suite, remaining code is executed ok 247 nonzero return in teardown_suite does fails test suite ok 248 stderr from setup/teardown_suite does not overtake stdout ok 249 load is available in setup_suite ok 250 output frorm setup_suite is only visible on failure ok 251 No tag filter runs all tests ok 252 Empty tag filter runs tests without tag ok 253 --filter-tags (also) selects tests that contain additional tags ok 254 --filter-tags only selects tests that match all tags (logic and) ok 255 multiple --filter-tags work as logical or ok 256 --filter-tags order of tags does not matter ok 257 exit with error on invalid tags in .bats file ok 258 --filter-tags allows for negation via ! ok 259 passing test ok 260 failing test ok 261 passing test with timing ok 262 failing test with timing ok 263 test faster than timeout ok 264 test longer than timeout ok 265 no --trace doesn't show anything on failure ok 266 --trace recurses into functions but not into run ok 267 invalid warning is an error ok 268 BW01 is printed when `run`ing a (non-existant) command with exit code 127 without exit code check ok 269 BW01 is not printed when `run`ing a (non-existant) command with exit code 127 with exit code check ok 270 BW01 is not printed when `run`ing a command with exit code !=127 without exit code check ok 271 BW02 is printed when run uses parameters without guaranteed version >= 1.5.0 ok 272 BW03 is printed when a test file defines setup_suite and setup_suite is not defined ok 273 BW03 is not printed when a test file defines setup_suite but setup_suite was completed ok 274 BW03 can be suppressed by setting BATS_SETUP_SUITE_COMPLETED + RPM_EC=0 ++ jobs -p + exit 0 Processing files: bats-1.8.0-1.el9.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.UUD9xY + umask 022 + cd /builddir/build/BUILD + cd bats-core-1.8.0 + DOCDIR=/builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/doc/bats + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/doc/bats + cp -pr AUTHORS /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/doc/bats + cp -pr README.md /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/doc/bats + cp -pr docs/CHANGELOG.md /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/doc/bats + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.RgaQaG + umask 022 + cd /builddir/build/BUILD + cd bats-core-1.8.0 + LICENSEDIR=/builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/licenses/bats + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/licenses/bats + cp -pr LICENSE.md /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch/usr/share/licenses/bats + RPM_EC=0 ++ jobs -p + exit 0 Provides: bats = 1.8.0-1.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/bash Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/bats-1.8.0-1.el9.noarch Wrote: /builddir/build/RPMS/bats-1.8.0-1.el9.noarch.rpm Child return code was: 0