Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-267945-25590/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/rpkg-macros-2.0-1.ocs23.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'], chrootPath='/var/lib/mock/dist-ocs23-epol9-build-267945-25590/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=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.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 warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qiG4tH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpkg-util-macros + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rpkg-util-macros-28034317.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd rpkg-util-macros + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (0001-fix-command-option.patch): + echo 'Patch #0 (0001-fix-command-option.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file macros.d/git.bash + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.UQDsO1 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch ++ dirname /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch + cd rpkg-util-macros + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/lib + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/lib/rpkg.macros.d + cp -ar macros.d/all.bash macros.d/git.bash macros.d/helpers macros.d/library /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/lib/rpkg.macros.d + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/bin + install -p -m 755 bin/pack_sources /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/bin/pack_sources + install -d /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/share/man/man1 + install -p -m 644 man/rpkg-macros.1 /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch//usr/share/man/man1/ + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 2.0-1.ocs23 --unique-debug-suffix -2.0-1.ocs23.noarch --unique-debug-src-base rpkg-macros-2.0-1.ocs23.noarch -S debugsourcefiles.list /builddir/build/BUILD/rpkg-util-macros find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_branch from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_submodule_refs from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_root from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_head from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_remote_url from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_head_short from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_merged_tag_refs from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_status from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/lib/rpkg.macros.d/helpers/git_remote from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/bin/pack_sources from /bin/bash to #!/usr/bin/bash + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.aeeYhC + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd rpkg-util-macros ++ pwd + export GIT_CONFIG_GLOBAL=/builddir/build/BUILD/rpkg-util-macros/gitconfig + GIT_CONFIG_GLOBAL=/builddir/build/BUILD/rpkg-util-macros/gitconfig + git config --global protocol.file.allow always + git config --global init.defaultBranch master + PATH=bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + tests/run ====================== test_bash ====================== Initialized empty Git repository in /tmp/tmp.2FBCYeWrHV/.git/ > cat /tmp/tmp.2FBCYeWrHV/input | preproc -C /tmp/tmp.2FBCYeWrHV -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.2FBCYeWrHV' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.ZF6HUcjgWL/output | log_filter > /tmp/tmp.ZF6HUcjgWL/log > diff /tmp/tmp.RLS9X1XeC0/output /tmp/tmp.ZF6HUcjgWL/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.ZF6HUcjgWL/log && die; } > diff log /tmp/tmp.ZF6HUcjgWL/log || die success. ====================== test_committed ====================== Initialized empty Git repository in /tmp/tmp.cndqSP5znc/.git/ [master (root-commit) dec7965] commit 1 1 file changed, 117 insertions(+) create mode 100644 input [master 272069a] commit 2 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo/file [master 55d374c] commit 3 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bar/file > cat /tmp/tmp.cndqSP5znc/input | preproc -C /tmp/tmp.cndqSP5znc -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.cndqSP5znc' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.1PvwhgtOcp/output | log_filter > /tmp/tmp.1PvwhgtOcp/log > diff /tmp/tmp.Yy8lFzlyiM/output /tmp/tmp.1PvwhgtOcp/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.1PvwhgtOcp/log && die; } > diff log /tmp/tmp.1PvwhgtOcp/log || die success. ====================== test_dirty ====================== Initialized empty Git repository in /tmp/tmp.zTKuEnZsZD/.git/ [master (root-commit) ca61efd] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input > cat /tmp/tmp.zTKuEnZsZD/input | preproc -C /tmp/tmp.zTKuEnZsZD -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.zTKuEnZsZD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.Y4oTTfWxCA/output | log_filter > /tmp/tmp.Y4oTTfWxCA/log > diff /tmp/tmp.myNCnNSpRg/output /tmp/tmp.Y4oTTfWxCA/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.Y4oTTfWxCA/log && die; } > diff log /tmp/tmp.Y4oTTfWxCA/log || die success. ====================== test_fn_bumped_version ====================== > cat /tmp/tmp.9zbeEp76tf/input | preproc -C /tmp/tmp.9zbeEp76tf -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.9zbeEp76tf' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.gJnRVTXegJ/output | log_filter > /tmp/tmp.gJnRVTXegJ/log > diff /tmp/tmp.m4IlgfGlFy/output /tmp/tmp.gJnRVTXegJ/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.gJnRVTXegJ/log && die; } > diff log /tmp/tmp.gJnRVTXegJ/log || die success. ====================== test_fn_git_prefix ====================== Initialized empty Git repository in /tmp/tmp.xMkV1q5NLC/.git/ [master (root-commit) bf02b85] add subdir with file 2 files changed, 6 insertions(+) create mode 100644 input create mode 100644 subdir/file Cloning into '/tmp/tmp.xMkV1q5NLC/submodule'... done. [master 5105dff] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.xMkV1q5NLC/input | preproc -C /tmp/tmp.xMkV1q5NLC -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.xMkV1q5NLC' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.eXtpbPo5Cv/output | log_filter > /tmp/tmp.eXtpbPo5Cv/log > diff /tmp/tmp.7Yl9oZOIqo/output /tmp/tmp.eXtpbPo5Cv/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.eXtpbPo5Cv/log && die; } > diff log /tmp/tmp.eXtpbPo5Cv/log || die success. ====================== test_fn_is_physical_subpath ====================== Initialized empty Git repository in /tmp/tmp.BYeMIHZvZ2/.git/ > cat /tmp/tmp.BYeMIHZvZ2/input | preproc -C /tmp/tmp.BYeMIHZvZ2 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.BYeMIHZvZ2' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.hJjTPc7GnL/output | log_filter > /tmp/tmp.hJjTPc7GnL/log > diff /tmp/tmp.nrN7OkBEKI/output /tmp/tmp.hJjTPc7GnL/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.hJjTPc7GnL/log && die; } > diff log /tmp/tmp.hJjTPc7GnL/log || die success. ====================== test_fn_is_strict_physical_subpath ====================== Initialized empty Git repository in /tmp/tmp.RBRMrQ9fXn/.git/ > cat /tmp/tmp.RBRMrQ9fXn/input | preproc -C /tmp/tmp.RBRMrQ9fXn -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RBRMrQ9fXn' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.KsJF0p61pd/output | log_filter > /tmp/tmp.KsJF0p61pd/log > diff /tmp/tmp.WcSoZQvXM4/output /tmp/tmp.KsJF0p61pd/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.KsJF0p61pd/log && die; } > diff log /tmp/tmp.KsJF0p61pd/log || die success. ====================== test_fn_version_dirty_appendix ====================== Initialized empty Git repository in /tmp/tmp.ccw3cXwgyi/.git/ [master (root-commit) fca645e] hello world 3 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 foo/cookie create mode 100644 input > cat /tmp/tmp.ccw3cXwgyi/input | preproc -C /tmp/tmp.ccw3cXwgyi -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.ccw3cXwgyi' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.L29mOF2LcR/output | log_filter > /tmp/tmp.L29mOF2LcR/log > diff /tmp/tmp.6bKjIu9Rjd/output_clean /tmp/tmp.L29mOF2LcR/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.L29mOF2LcR/log && die; } > diff log /tmp/tmp.L29mOF2LcR/log || die success. > cat /tmp/tmp.ccw3cXwgyi/input | preproc -C /tmp/tmp.ccw3cXwgyi -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.ccw3cXwgyi' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.L29mOF2LcR/output | log_filter > /tmp/tmp.L29mOF2LcR/log > diff /tmp/tmp.6bKjIu9Rjd/output_dirty /tmp/tmp.L29mOF2LcR/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.L29mOF2LcR/log && die; } > diff log /tmp/tmp.L29mOF2LcR/log || die success. Updated 1 path from the index > cat /tmp/tmp.ccw3cXwgyi/input | preproc -C /tmp/tmp.ccw3cXwgyi -e GIT_DIRTY=1 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.ccw3cXwgyi' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.L29mOF2LcR/output | log_filter > /tmp/tmp.L29mOF2LcR/log > diff /tmp/tmp.6bKjIu9Rjd/output_dirty_manual /tmp/tmp.L29mOF2LcR/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.L29mOF2LcR/log && die; } > diff log /tmp/tmp.L29mOF2LcR/log || die success. ====================== test_inited ====================== Initialized empty Git repository in /tmp/tmp.pKdrewNO5W/.git/ > cat /tmp/tmp.pKdrewNO5W/input | preproc -C /tmp/tmp.pKdrewNO5W -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.pKdrewNO5W' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.B60nuLZexL/output | log_filter > /tmp/tmp.B60nuLZexL/log > diff /tmp/tmp.aVFx1glfKg/output /tmp/tmp.B60nuLZexL/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.B60nuLZexL/log && die; } > diff log /tmp/tmp.B60nuLZexL/log || die success. ====================== test_inited_origin_set ====================== Initialized empty Git repository in /tmp/tmp.41i7sf9N6t/.git/ > cat /tmp/tmp.41i7sf9N6t/input | preproc -C /tmp/tmp.41i7sf9N6t -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.41i7sf9N6t' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.WjWcsKdBQh/output | log_filter > /tmp/tmp.WjWcsKdBQh/log > diff /tmp/tmp.w8ARuzso0w/output /tmp/tmp.WjWcsKdBQh/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.WjWcsKdBQh/log && die; } > diff log /tmp/tmp.WjWcsKdBQh/log || die success. ====================== test_sources ====================== Initialized empty Git repository in /tmp/tmp.V7RfNtRybd/.git/ > cat /tmp/tmp.V7RfNtRybd/input | preproc -C /tmp/tmp.V7RfNtRybd -e OUTDIR=/tmp/tmp.YNRN0PnygB -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.V7RfNtRybd' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.YNRN0PnygB/output | log_filter > /tmp/tmp.YNRN0PnygB/log > diff /tmp/tmp.2PSZX7M4Ha/output /tmp/tmp.YNRN0PnygB/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.YNRN0PnygB/log && die; } > diff log /tmp/tmp.YNRN0PnygB/log || die > custom_test > tar -C /tmp/tmp.YNRN0PnygB -xf /tmp/tmp.YNRN0PnygB/foo.tar.gz || die > diff /tmp/tmp.YNRN0PnygB/foo/cookie /tmp/tmp.V7RfNtRybd/cookie || die > ls /tmp/tmp.YNRN0PnygB/foo/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.YNRN0PnygB/foo/cookie_unadded 2>/dev/null && die success. ====================== test_sources_committed ====================== Initialized empty Git repository in /tmp/tmp.RZTMNwM4qr/.git/ [master (root-commit) ba3d864] commit 1 2 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 input > cat /tmp/tmp.RZTMNwM4qr/input | preproc -C /tmp/tmp.RZTMNwM4qr -e OUTDIR=/tmp/tmp.nFM5B1dlv6 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RZTMNwM4qr' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.nFM5B1dlv6/output | log_filter > /tmp/tmp.nFM5B1dlv6/log > diff /tmp/tmp.lj01HSOeey/output /tmp/tmp.nFM5B1dlv6/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.nFM5B1dlv6/log && die; } > diff log /tmp/tmp.nFM5B1dlv6/log || die > custom_test > tar -C /tmp/tmp.nFM5B1dlv6 -xf /tmp/tmp.nFM5B1dlv6/foo.tar.gz || die > diff /tmp/tmp.nFM5B1dlv6/foo/cookie /tmp/tmp.RZTMNwM4qr/cookie || die > [ 'ba3d86485a684846a8fcd615a6728b2bba728a72' = 'ba3d86485a684846a8fcd615a6728b2bba728a72' ] || die > tar -C /tmp/tmp.nFM5B1dlv6 -xf /tmp/tmp.nFM5B1dlv6/bar.tar.gz || die > diff /tmp/tmp.nFM5B1dlv6/bar/cookie /tmp/tmp.RZTMNwM4qr/cookie || die > [ 'ba3d86485a684846a8fcd615a6728b2bba728a72' = 'ba3d86485a684846a8fcd615a6728b2bba728a72' ] || die success. > cat /tmp/tmp.RZTMNwM4qr/input | preproc -C /tmp/tmp.RZTMNwM4qr -e OUTDIR=/tmp/tmp.nFM5B1dlv6 -e GIT_STATUS=somestatus -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RZTMNwM4qr' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.nFM5B1dlv6/output | log_filter > /tmp/tmp.nFM5B1dlv6/log > test_nonempty_git_status > tar -C /tmp/tmp.nFM5B1dlv6 -xf /tmp/tmp.nFM5B1dlv6/foo.tar.gz || die > diff /tmp/tmp.nFM5B1dlv6/foo/cookie /tmp/tmp.RZTMNwM4qr/cookie || die > [ 'ba3d86485a684846a8fcd615a6728b2bba728a72' = '' ] && die > tar -C /tmp/tmp.nFM5B1dlv6 -xf /tmp/tmp.nFM5B1dlv6/bar.tar.gz || die > diff /tmp/tmp.nFM5B1dlv6/bar/cookie /tmp/tmp.RZTMNwM4qr/cookie || die > [ 'ba3d86485a684846a8fcd615a6728b2bba728a72' = 'ba3d86485a684846a8fcd615a6728b2bba728a72' ] || die success. > cat /tmp/tmp.RZTMNwM4qr/input | preproc -C /tmp/tmp.RZTMNwM4qr -e OUTDIR=/tmp/tmp.nFM5B1dlv6 -e GIT_HEAD=somehead -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RZTMNwM4qr' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.nFM5B1dlv6/output | log_filter > /tmp/tmp.nFM5B1dlv6/log > test_invalid_git_head > [ -f '/tmp/tmp.nFM5B1dlv6/foo.tar.gz' ] && die > [ -f '/tmp/tmp.nFM5B1dlv6/bar.tar.gz' ] && die success. > cat /tmp/tmp.RZTMNwM4qr/input | preproc -C /tmp/tmp.RZTMNwM4qr -e OUTDIR=/tmp/tmp.nFM5B1dlv6 -e GIT_HEAD= -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RZTMNwM4qr' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.nFM5B1dlv6/output | log_filter > /tmp/tmp.nFM5B1dlv6/log > test_empty_git_head > tar -C /tmp/tmp.nFM5B1dlv6 -xf /tmp/tmp.nFM5B1dlv6/foo.tar.gz || die > diff /tmp/tmp.nFM5B1dlv6/foo/cookie /tmp/tmp.RZTMNwM4qr/cookie || die > [ 'ba3d86485a684846a8fcd615a6728b2bba728a72' = '' ] && die > [ -f '/tmp/tmp.nFM5B1dlv6/bar.tar.gz' ] && die success. ====================== test_sources_committed_dirty ====================== Initialized empty Git repository in /tmp/tmp.tCbX3Xgop9/.git/ [master (root-commit) c34f08e] commit 1 2 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 input > cat /tmp/tmp.tCbX3Xgop9/input | preproc -C /tmp/tmp.tCbX3Xgop9 -e OUTDIR=/tmp/tmp.QJSd6RApo7 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.tCbX3Xgop9' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.QJSd6RApo7/output | log_filter > /tmp/tmp.QJSd6RApo7/log > diff /tmp/tmp.oPS0CazwFY/output /tmp/tmp.QJSd6RApo7/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.QJSd6RApo7/log && die; } > diff log /tmp/tmp.QJSd6RApo7/log || die > custom_test > tar -C /tmp/tmp.QJSd6RApo7 -xf /tmp/tmp.QJSd6RApo7/foo.tar.gz || die > diff /tmp/tmp.QJSd6RApo7/foo/cookie /tmp/tmp.tCbX3Xgop9/cookie || die > [ 'c34f08e7deda5425a27c4ee06ba845b3d667fad9' = '' ] && die > tar -C /tmp/tmp.QJSd6RApo7 -xf /tmp/tmp.QJSd6RApo7/bar.tar.gz || die > diff /tmp/tmp.QJSd6RApo7/bar/cookie /tmp/tmp.tCbX3Xgop9/cookie >/dev/null && die > [ 'c34f08e7deda5425a27c4ee06ba845b3d667fad9' = 'c34f08e7deda5425a27c4ee06ba845b3d667fad9' ] || die success. ====================== test_sources_subdir ====================== Initialized empty Git repository in /tmp/tmp.ZtTjpSI3Aj/.git/ [master (root-commit) 6e1e3cd] commit 1 5 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 bar/cookie create mode 100644 bar/input create mode 100644 baz/cookie create mode 100644 foo/cookie > cat /tmp/tmp.ZtTjpSI3Aj/bar/input | preproc -C /tmp/tmp.ZtTjpSI3Aj/foo -e OUTDIR=/tmp/tmp.Hh51behRc7 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.ZtTjpSI3Aj/bar' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.Hh51behRc7/output | log_filter > /tmp/tmp.Hh51behRc7/log > diff /tmp/tmp.m6s8fKk8br/output /tmp/tmp.Hh51behRc7/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.Hh51behRc7/log && die; } > diff log /tmp/tmp.Hh51behRc7/log || die > custom_test > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/dir_pack_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-bar/cookie /tmp/tmp.ZtTjpSI3Aj/bar/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/dir_archive_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-bar/cookie /tmp/tmp.ZtTjpSI3Aj/bar/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/dir_pack_foo.tar.gz || die > diff /tmp/tmp.Hh51behRc7/foo/cookie /tmp/tmp.ZtTjpSI3Aj/bar/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/dir_archive_bar.tar.gz || die > diff /tmp/tmp.Hh51behRc7/bar/cookie /tmp/tmp.ZtTjpSI3Aj/bar/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/cwd_pack_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-foo/cookie /tmp/tmp.ZtTjpSI3Aj/foo/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/cwd_archive_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-foo/cookie /tmp/tmp.ZtTjpSI3Aj/foo/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/cwd_pack_foo.tar.gz || die > diff /tmp/tmp.Hh51behRc7/foo/cookie /tmp/tmp.ZtTjpSI3Aj/foo/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/cwd_archive_bar.tar.gz || die > diff /tmp/tmp.Hh51behRc7/bar/cookie /tmp/tmp.ZtTjpSI3Aj/foo/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/baz_pack_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-baz/cookie /tmp/tmp.ZtTjpSI3Aj/baz/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/baz_archive_nodirname.tar.gz || die > diff /tmp/tmp.Hh51behRc7/test-baz/cookie /tmp/tmp.ZtTjpSI3Aj/baz/cookie || die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/baz_pack_foo.tar.gz || die > diff /tmp/tmp.Hh51behRc7/foo/cookie /tmp/tmp.ZtTjpSI3Aj/baz/cookie || die > ls /tmp/tmp.Hh51behRc7/foo/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.Hh51behRc7/foo/cookie_unadded 2>/dev/null && die > tar -C /tmp/tmp.Hh51behRc7 -xf /tmp/tmp.Hh51behRc7/baz_archive_bar.tar.gz || die > diff /tmp/tmp.Hh51behRc7/bar/cookie /tmp/tmp.ZtTjpSI3Aj/baz/cookie || die > ls /tmp/tmp.Hh51behRc7/bar/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.Hh51behRc7/bar/cookie_unadded 2>/dev/null && die success. ====================== test_subdir ====================== Initialized empty Git repository in /tmp/tmp.XdKsxuQoJV/.git/ > cat /tmp/tmp.XdKsxuQoJV/bar/input | preproc -C /tmp/tmp.XdKsxuQoJV/foo -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.XdKsxuQoJV/bar' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.F0DZQU6grs/output | log_filter > /tmp/tmp.F0DZQU6grs/log > diff /tmp/tmp.nPBfK33YhB/output /tmp/tmp.F0DZQU6grs/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.F0DZQU6grs/log && die; } > diff log /tmp/tmp.F0DZQU6grs/log || die success. ====================== test_submodule ====================== Initialized empty Git repository in /tmp/tmp.RVopr8RRHR/.git/ [master (root-commit) 3cc941b] initial commit 4 files changed, 26 insertions(+) create mode 100644 input create mode 100644 input_cwd create mode 100644 input_dir create mode 100644 subdir/file Cloning into '/tmp/tmp.RVopr8RRHR/submodule'... done. [master 5709464] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.RVopr8RRHR/input | preproc -C /tmp/tmp.RVopr8RRHR -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RVopr8RRHR' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.vRLoDk6dqB/output | log_filter > /tmp/tmp.vRLoDk6dqB/log > diff /tmp/tmp.8q7exLnzNC/output /tmp/tmp.vRLoDk6dqB/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.vRLoDk6dqB/log && die; } > diff log /tmp/tmp.vRLoDk6dqB/log || die success. > cat /tmp/tmp.RVopr8RRHR/submodule/input_dir | preproc -C /tmp/tmp.RVopr8RRHR -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RVopr8RRHR/submodule' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.vRLoDk6dqB/output | log_filter > /tmp/tmp.vRLoDk6dqB/log > diff /tmp/tmp.8q7exLnzNC/output_dir /tmp/tmp.vRLoDk6dqB/output || { echo 'LOG DIFF:' && diff log_dir /tmp/tmp.vRLoDk6dqB/log && die; } > diff log_dir /tmp/tmp.vRLoDk6dqB/log || die success. > cat /tmp/tmp.RVopr8RRHR/submodule/input_cwd | preproc -C /tmp/tmp.RVopr8RRHR/submodule/subdir -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.RVopr8RRHR/submodule' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.vRLoDk6dqB/output | log_filter > /tmp/tmp.vRLoDk6dqB/log > diff /tmp/tmp.8q7exLnzNC/output_cwd /tmp/tmp.vRLoDk6dqB/output || { echo 'LOG DIFF:' && diff log_cwd /tmp/tmp.vRLoDk6dqB/log && die; } > diff log_cwd /tmp/tmp.vRLoDk6dqB/log || die success. ====================== test_submodule_sources ====================== Initialized empty Git repository in /tmp/tmp.KmaFqWf4KL/.git/ [master (root-commit) d65411b] initial commit 3 files changed, 7 insertions(+) create mode 100644 input_archive create mode 100644 input_pack create mode 100644 subdir/cookie Cloning into '/tmp/tmp.KmaFqWf4KL/submodule'... done. [master ccbe602] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.KmaFqWf4KL/input_archive | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_archive_clean > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026.tar.gz || die > [ -d /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.KmaFqWf4KL/input_pack | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_pack_clean > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 0 || die success. [master 6b61bee] submodule new commit 1 file changed, 1 insertion(+) > cat /tmp/tmp.KmaFqWf4KL/input_archive | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_archive_submodule_new_commit > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026.tar.gz || die > [ -d /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.KmaFqWf4KL/input_pack | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_pack_submodule_new_commit > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026-dirty.tar.gz || die > [ -d /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026-dirty.tar.gz || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 1 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 1 || die success. > cat /tmp/tmp.KmaFqWf4KL/input_archive | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_archive_submodule_dirty > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026.tar.gz || die > [ -d /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > [ -f /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.KmaFqWf4KL/input_pack | preproc -C /tmp/tmp.KmaFqWf4KL -e OUTDIR=/tmp/tmp.EZQgUsglxz -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.KmaFqWf4KL' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.EZQgUsglxz/output | log_filter > /tmp/tmp.EZQgUsglxz/log > custom_test_pack_submodule_dirty > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-ccbe6026-dirty.tar.gz || die > [ -d /tmp/tmp.EZQgUsglxz/test/submodule/subdir ] && die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-ccbe6026-dirty.tar.gz || die > cat /tmp/tmp.EZQgUsglxz/test-submodule/subdir/cookie | grep -q 2 || die > tar -C /tmp/tmp.EZQgUsglxz -xf /tmp/tmp.EZQgUsglxz/test-submodule-subdir-ccbe6026.tar.gz || die > cat /tmp/tmp.EZQgUsglxz/test-submodule-subdir/cookie | grep -q 2 || die success. ====================== test_tagged ====================== Initialized empty Git repository in /tmp/tmp.cw5nO581JN/.git/ [master (root-commit) f958fe1] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input Switched to a new branch 'side_branch' [side_branch adb77a5] side branch commit 1 file changed, 1 insertion(+) Switched to branch 'master' > cat /tmp/tmp.cw5nO581JN/input | preproc -C /tmp/tmp.cw5nO581JN -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.cw5nO581JN' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.din7TQPPKi/output | log_filter > /tmp/tmp.din7TQPPKi/log > diff /tmp/tmp.v3GzVjQOZp/output /tmp/tmp.din7TQPPKi/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.din7TQPPKi/log && die; } > diff log /tmp/tmp.din7TQPPKi/log || die success. ====================== test_tagged_committed ====================== Initialized empty Git repository in /tmp/tmp.r0Roer2xda/.git/ [master (root-commit) 7cd9904] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input [master 410478c] commit after tag 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 file > cat /tmp/tmp.r0Roer2xda/input | preproc -C /tmp/tmp.r0Roer2xda -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.r0Roer2xda' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.O5IZq9LF3i/output | log_filter > /tmp/tmp.O5IZq9LF3i/log > diff /tmp/tmp.akaAJQ3Jy3/output /tmp/tmp.O5IZq9LF3i/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.O5IZq9LF3i/log && die; } > diff log /tmp/tmp.O5IZq9LF3i/log || die success. ====================== test_uninited ====================== > cat /tmp/tmp.XL5Vr2QNWK/input | preproc -C /tmp/tmp.XL5Vr2QNWK -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.XL5Vr2QNWK' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.uQyeqklfYr/output | log_filter > /tmp/tmp.uQyeqklfYr/log > diff /tmp/tmp.eNxrPzLBS3/output /tmp/tmp.uQyeqklfYr/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.uQyeqklfYr/log && die; } > diff log /tmp/tmp.uQyeqklfYr/log || die success. + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rpkg-macros-2.0-1.ocs23.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.dhqIho + umask 022 + cd /builddir/build/BUILD + cd rpkg-util-macros + LICENSEDIR=/builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/share/licenses/rpkg-macros + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/share/licenses/rpkg-macros + cp -pr LICENSE /builddir/build/BUILDROOT/rpkg-macros-2.0-1.ocs23.noarch/usr/share/licenses/rpkg-macros + RPM_EC=0 ++ jobs -p + exit 0 Provides: rpkg-macros = 2.0-1.ocs23 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/rpkg-macros-2.0-1.ocs23.noarch Wrote: /builddir/build/RPMS/rpkg-macros-2.0-1.ocs23.noarch.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0