Mock Version: 2.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], chrootPath='/var/lib/mock/epel-8-aarch64-1587902900.680332/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.hdfuy2m1:/etc/resolv.conf', '--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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hdfuy2m1:/etc/resolv.conf', '--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', '805aeb10182f4766b58928381e1b234a', '-D', '/var/lib/mock/epel-8-aarch64-1587902900.680332/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hdfuy2m1:/etc/resolv.conf', '--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', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.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'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/rubygem-bcrypt-3.1.12-5.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.spec'], chrootPath='/var/lib/mock/epel-8-aarch64-1587902900.680332/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.hdfuy2m1:/etc/resolv.conf', '--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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hdfuy2m1:/etc/resolv.conf', '--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', '631ae250030f4ab4a48976f96c2969dd', '-D', '/var/lib/mock/epel-8-aarch64-1587902900.680332/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.hdfuy2m1:/etc/resolv.conf', '--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', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/rubygem-bcrypt.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'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZKqHu1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rubygem-bcrypt-3.1.12 + /usr/bin/mkdir -p rubygem-bcrypt-3.1.12 + cd rubygem-bcrypt-3.1.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection'\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc /builddir/build/SOURCES/bcrypt-3.1.12.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/rubygem-bcrypt-3.1.12 Bin dir: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/bin Gem home: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/.gitignore /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/.rspec /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/.travis.yml /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/CHANGELOG /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/COPYING /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/Gemfile /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/Gemfile.lock /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/README.md /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/Rakefile /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/appveyor.yml /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/bcrypt.gemspec /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/jruby/bcrypt_jruby/BCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/bcrypt_ext.c /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/crypt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/crypt_blowfish.c /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/crypt_gensalt.c /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/extconf.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/ow-crypt.h /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri/wrapper.c /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/lib/bcrypt.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/lib/bcrypt/engine.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/lib/bcrypt/error.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/lib/bcrypt/password.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/spec/TestBCrypt.java /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/spec/bcrypt/engine_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/spec/bcrypt/error_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/spec/bcrypt/password_spec.rb /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/spec/spec_helper.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri /usr/bin/ruby -r ./siteconf20200426-24-dhr0dw.rb extconf.rb creating Makefile current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri make "DESTDIR=" clean rm -f rm -f bcrypt_ext.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o bcrypt_ext.o -c bcrypt_ext.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o crypt.o -c crypt.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o crypt_blowfish.o -c crypt_blowfish.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o crypt_gensalt.o -c crypt_gensalt.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o wrapper.o -c wrapper.c rm -f bcrypt_ext.so gcc -shared -o bcrypt_ext.so bcrypt_ext.o crypt.o crypt_blowfish.o crypt_gensalt.o wrapper.o -L. -L/usr/lib64 -L. -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lruby -lc current directory: /builddir/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12/ext/mri make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20200426-24-3opmw8 exit > .sitearchdir.time /usr/bin/install -c -m 0755 bcrypt_ext.so ./.gem.20200426-24-3opmw8 Successfully installed bcrypt-3.1.12 Parsing documentation for bcrypt-3.1.12 Parsing sources... 4% [ 1/23] CHANGELOG 8% [ 2/23] COPYING 13% [ 3/23] README.md 17% [ 4/23] ext/jruby/bcrypt_jruby/BCrypt.java 21% [ 5/23] ext/mri/Makefile 26% [ 6/23] ext/mri/bcrypt_ext.c 30% [ 7/23] ext/mri/bcrypt_ext.o 34% [ 8/23] ext/mri/bcrypt_ext.so 39% [ 9/23] ext/mri/crypt.c 43% [10/23] ext/mri/crypt.h 47% [11/23] ext/mri/crypt.o 52% [12/23] ext/mri/crypt_blowfish.c 56% [13/23] ext/mri/crypt_blowfish.o 60% [14/23] ext/mri/crypt_gensalt.c 65% [15/23] ext/mri/crypt_gensalt.o 69% [16/23] ext/mri/extconf.rb 73% [17/23] ext/mri/ow-crypt.h 78% [18/23] ext/mri/wrapper.c 82% [19/23] ext/mri/wrapper.o 86% [20/23] lib/bcrypt.rb 91% [21/23] lib/bcrypt/engine.rb 95% [22/23] lib/bcrypt/error.rb 100% [23/23] lib/bcrypt/password.rb Installing ri documentation for bcrypt-3.1.12 Installing darkfish documentation for bcrypt-3.1.12 Done installing documentation for bcrypt after 1 seconds 1 gem installed + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VsE59g + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.12 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DrAmzw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 ++ dirname /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 + cd rubygem-bcrypt-3.1.12 + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/lib64/gems/ruby/bcrypt-3.1.12 + cp -a ./usr/lib64/gems/ruby/bcrypt-3.1.12/gem.build_complete ./usr/lib64/gems/ruby/bcrypt-3.1.12/bcrypt_ext.so /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/lib64/gems/ruby/bcrypt-3.1.12/ + rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/share/gems/gems/bcrypt-3.1.12/ext/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 3.1.12-5.el8 --unique-debug-suffix -3.1.12-5.el8.aarch64 --unique-debug-src-base rubygem-bcrypt-3.1.12-5.el8.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rubygem-bcrypt-3.1.12 extracting debug info from /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64/usr/lib64/gems/ruby/bcrypt-3.1.12/bcrypt_ext.so /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 79 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile 1 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.UNjHoM + umask 022 + cd /builddir/build/BUILD ~/build/BUILD/rubygem-bcrypt-3.1.12/usr/share/gems/gems/bcrypt-3.1.12 ~/build/BUILD/rubygem-bcrypt-3.1.12 + cd rubygem-bcrypt-3.1.12 + pushd ./usr/share/gems/gems/bcrypt-3.1.12 ++ dirs +1 + rspec -I~/build/BUILD/rubygem-bcrypt-3.1.12/usr/lib64/gems/ruby/bcrypt-3.1.12 spec The BCrypt engine should calculate the optimal cost factor to fit in a specific time Generating BCrypt salts should produce strings should produce random data should raise a InvalidCostError if the cost parameter isn't numeric should raise a InvalidCostError if the cost parameter isn't greater than 0 Autodetecting of salt cost should work Generating BCrypt hashes should produce a string should raise an InvalidSalt error if the salt is invalid should raise an InvalidSecret error if the secret is invalid should call #to_s on the secret and use the return value as the actual secret data should be interoperable with other implementations Errors BCrypt::Error can be rescued as a StandardError BCrypt::Errors::InvalidCost can be rescued as a BCrypt::Error BCrypt::Errors::InvalidHash can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSalt can be rescued as a BCrypt::Error BCrypt::Errors::InvalidSecret can be rescued as a BCrypt::Error Creating a hashed password should return a BCrypt::Password should return a valid bcrypt password should behave normally if the secret is not a string should tolerate empty string secrets Reading a hashed password the cost is too damn high the cost should be set to the default if nil the cost should be set to the default if empty hash the cost should be set to the passed value if provided the cost should be set to the global value if set the cost should be set to an overridden constant for backwards compatibility should read the version, cost, salt, and hash should raise an InvalidHashError when given an invalid hash Comparing a hashed password with a secret should compare successfully to the original secret should compare unsuccessfully to anything besides original secret Validating a generated salt should not accept an invalid salt should accept a valid salt Validating a password hash should not accept an invalid password should accept a valid password Finished in 2.97 seconds (files took 0.22951 seconds to load) 34 examples, 0 failures + popd ~/build/BUILD/rubygem-bcrypt-3.1.12 + exit 0 Processing files: rubygem-bcrypt-3.1.12-5.el8.aarch64 Provides: rubygem(bcrypt) = 3.1.12-1 rubygem(brypt-ruby) = 3.1.12 rubygem-bcrypt = 3.1.12-5.el8 rubygem-bcrypt(aarch-64) = 3.1.12-5.el8 rubygem-bcrypt-ruby = 3.1.12-5.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-aarch64.so.1()(64bit) ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libruby.so.2.5()(64bit) rtld(GNU_HASH) ruby(rubygems) Obsoletes: rubygem-bcrypt-ruby <= 3.1.2-2 Processing files: rubygem-bcrypt-doc-3.1.12-5.el8.noarch Provides: rubygem-bcrypt-doc = 3.1.12-5.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-bcrypt-debugsource-3.1.12-5.el8.aarch64 Provides: rubygem-bcrypt-debugsource = 3.1.12-5.el8 rubygem-bcrypt-debugsource(aarch-64) = 3.1.12-5.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-bcrypt-debuginfo-3.1.12-5.el8.aarch64 Provides: debuginfo(build-id) = ec8921095b5c12436627421b3fb985476b6fb49b rubygem-bcrypt-debuginfo = 3.1.12-5.el8 rubygem-bcrypt-debuginfo(aarch-64) = 3.1.12-5.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rubygem-bcrypt-debugsource(aarch-64) = 3.1.12-5.el8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 Wrote: /builddir/build/RPMS/rubygem-bcrypt-3.1.12-5.el8.aarch64.rpm Wrote: /builddir/build/RPMS/rubygem-bcrypt-doc-3.1.12-5.el8.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-bcrypt-debugsource-3.1.12-5.el8.aarch64.rpm Wrote: /builddir/build/RPMS/rubygem-bcrypt-debuginfo-3.1.12-5.el8.aarch64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xz5nbI + umask 022 + cd /builddir/build/BUILD + cd rubygem-bcrypt-3.1.12 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-bcrypt-3.1.12-5.el8.aarch64 + exit 0 Child return code was: 0