Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec'], chrootPath='/var/lib/mock/f39-build-1444447-32610/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.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=1689897600 Wrote: /builddir/build/SRPMS/python-git-revise-0.7.0-6.fc39.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/python-git-revise.spec'], chrootPath='/var/lib/mock/f39-build-1444447-32610/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.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=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AoDWxu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf git-revise-0.7.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/git-revise-0.7.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd git-revise-0.7.0 + rm -rf /builddir/build/BUILD/git-revise-0.7.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/git-revise-0.7.0-SPECPARTS + /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.3A9PgF + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 git-revise-0.7.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/gitrevise copying gitrevise/__main__.py -> build/lib/gitrevise copying gitrevise/merge.py -> build/lib/gitrevise copying gitrevise/tui.py -> build/lib/gitrevise copying gitrevise/__init__.py -> build/lib/gitrevise copying gitrevise/todo.py -> build/lib/gitrevise copying gitrevise/utils.py -> build/lib/gitrevise copying gitrevise/odb.py -> build/lib/gitrevise + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pFhpLw + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch ++ dirname /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 git-revise-0.7.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch --prefix /usr running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/__main__.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/merge.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/tui.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/__init__.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/todo.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/utils.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise copying build/lib/gitrevise/odb.py -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/__main__.py to __main__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/merge.py to merge.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/tui.py to tui.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/todo.py to todo.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/utils.py to utils.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/gitrevise/odb.py to odb.cpython-312.pyc writing byte-compilation script '/tmp/tmp2vu35kkn.py' /usr/bin/python3 /tmp/tmp2vu35kkn.py removing /tmp/tmp2vu35kkn.py running install_data creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/share creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/share/man creating /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/share/man/man1 copying git-revise.1 -> /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/share/man/man1 running install_egg_info running egg_info creating git_revise.egg-info writing git_revise.egg-info/PKG-INFO writing dependency_links to git_revise.egg-info/dependency_links.txt writing entry points to git_revise.egg-info/entry_points.txt writing top-level names to git_revise.egg-info/top_level.txt writing manifest file 'git_revise.egg-info/SOURCES.txt' reading manifest file 'git_revise.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'git_revise.egg-info/SOURCES.txt' Copying git_revise.egg-info to /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages/git_revise-0.7.0-py3.12.egg-info running install_scripts Installing git-revise script to /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/bin + rm -rfv /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.7.0-6.fc39 --unique-debug-suffix -0.7.0-6.fc39.noarch --unique-debug-src-base python-git-revise-0.7.0-6.fc39.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/git-revise-0.7.0 find: ‘debug’: No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.hgobqH + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -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 git-revise-0.7.0 + PYTHONPATH=/builddir/build/BUILDROOT/python-git-revise-0.7.0-6.fc39.noarch/usr/lib/python3.12/site-packages + /usr/bin/python3 -m pytest ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.2.0 rootdir: /builddir/build/BUILD/git-revise-0.7.0 collected 38 items tests/test_cut.py .F [ 5%] tests/test_fixup.py .............. [ 42%] tests/test_gpgsign.py . [ 44%] tests/test_interactive.py ......F... [ 71%] tests/test_rerere.py ..... [ 84%] tests/test_reword.py ...... [100%] =================================== FAILURES =================================== ________________________________ test_cut_root _________________________________ repo = def test_cut_root(repo): bash( """ echo "Hello, World" >> file1 echo "Make f2" >> file2 git add file1 file2 git commit -m "root commit" """ ) prev = repo.get_commit("HEAD") assert prev.is_root assert len(prev.parent_oids) == 0 with editor_main(["--cut", "HEAD"], input=b"y\nn\n") as ed: > with ed.next_file() as f: /builddir/build/BUILD/git-revise-0.7.0/tests/test_cut.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 0f76953] root commit Author: Bash Author 2 files changed, 2 insertions(+) create mode 100644 file1 create mode 100644 file2 Running ['/usr/bin/python3', '-m', 'gitrevise', '--cut', 'HEAD'] {'input': b'y\nn\n', 'check': True} diff --git b/file1 a/file1 new file mode 100644 index 0000000..3fa0d4b --- /dev/null +++ a/file1 @@ -0,0 +1 @@ +Hello, World (1/1) Apply addition to index [y,n,q,a,d,e,?]? diff --git b/file2 a/file2 new file mode 100644 index 0000000..93350fe --- /dev/null +++ a/file2 @@ -0,0 +1 @@ +Make f2 (1/1) Apply addition to index [y,n,q,a,d,e,?]? Cutting commit 0f769538d035 Select changes to be included in part [1]: editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37097/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:37097/', 'COMMIT_EDITMSG']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out _______________________ test_autosquash_config[0-1-True] _______________________ repo = rebase_config = '0', revise_config = '1', expected = True @pytest.mark.parametrize( "rebase_config,revise_config,expected", [ (None, None, False), ("1", "0", False), ("0", "1", True), ("1", None, True), (None, "1", True), ], ) def test_autosquash_config(repo, rebase_config, revise_config, expected): bash( """ echo "hello, world" > file1 git add file1 git commit -m "commit one" echo "second file" > file2 git add file2 git commit -m "commit two" echo "new line!" >> file1 git add file1 git commit -m "commit three" echo "extra line" >> file2 git add file2 git commit --fixup=HEAD~ """ ) if rebase_config is not None: bash(f"git config rebase.autoSquash '{rebase_config}'") if revise_config is not None: bash(f"git config revise.autoSquash '{revise_config}'") head = repo.get_commit("HEAD") headu = head.parent() headuu = headu.parent() disabled = f"""\ pick {headuu.oid.short()} commit two pick {headu.oid.short()} commit three pick {head.oid.short()} fixup! commit two """ enabled = f"""\ pick {headuu.oid.short()} commit two fixup {head.oid.short()} fixup! commit two pick {headu.oid.short()} commit three """ def subtest(args, expected_todos): with editor_main(args + ["-i", "HEAD~3"]) as ed: with ed.next_file() as f: assert f.startswith_dedent(expected_todos) f.replace_dedent(disabled) # don't mutate state assert repo.get_commit("HEAD") == head > subtest([], enabled if expected else disabled) /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /builddir/build/BUILD/git-revise-0.7.0/tests/test_interactive.py:258: in subtest with ed.next_file() as f: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def next_file(self): assert self.handle_thread is None assert self.current is None # Spawn a thread to handle the single request. self.request_ready.clear() self.handle_thread = Thread(target=self.handle_request) self.handle_thread.start() if not self.request_ready.wait(timeout=self.timeout): > raise Exception("timeout while waiting for request") E Exception: timeout while waiting for request /builddir/build/BUILD/git-revise-0.7.0/tests/conftest.py:243: Exception ----------------------------- Captured stdout call ----------------------------- [master (root-commit) 594c1e1] commit one Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file1 [master a6e7b83] commit two Author: Bash Author 1 file changed, 1 insertion(+) create mode 100644 file2 [master 0e886bf] commit three Author: Bash Author 1 file changed, 1 insertion(+) [master f42cd51] fixup! commit two Author: Bash Author 1 file changed, 1 insertion(+) Running ['/usr/bin/python3', '-m', 'gitrevise', '-i', 'HEAD~3'] {'check': True} editor error: Editor exited with status Command '['/bin/sh', '-ec', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34345/ "$@"', '/usr/bin/python3 /builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py http://127.0.0.1:34345/', 'git-revise-todo']' returned non-zero exit status 1. ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 17, in run_editor(url=sys.argv[1], path=Path(sys.argv[2]).resolve()) File "/builddir/build/BUILD/git-revise-0.7.0/tests/dummy_editor.py", line 8, in run_editor with urlopen(url, data=path.read_bytes(), timeout=10) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1373, in http_open return self.do_open(http.client.HTTPConnection, req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/urllib/request.py", line 1348, in do_open r = h.getresponse() ^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 1411, in getresponse response.begin() File "/usr/lib64/python3.12/http/client.py", line 324, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/http/client.py", line 285, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/socket.py", line 707, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: timed out =========================== short test summary info ============================ FAILED tests/test_cut.py::test_cut_root - Exception: timeout while waiting fo... FAILED tests/test_interactive.py::test_autosquash_config[0-1-True] - Exceptio... =================== 2 failed, 36 passed in 717.43s (0:11:57) =================== error: Bad exit status from /var/tmp/rpm-tmp.hgobqH (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hgobqH (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-git-revise.spec