... ok test_dictionary (test.test_zlib.CompressObjectTestCase) ... ok test_dictionary_streaming (test.test_zlib.CompressObjectTestCase) ... ok test_empty_flush (test.test_zlib.CompressObjectTestCase) ... ok test_flush_custom_length (test.test_zlib.CompressObjectTestCase) ... ok test_flush_large_length (test.test_zlib.CompressObjectTestCase) ... ok test_flush_with_freed_input (test.test_zlib.CompressObjectTestCase) ... ok test_flushes (test.test_zlib.CompressObjectTestCase) ... ok test_large_unconsumed_tail (test.test_zlib.CompressObjectTestCase) ... ok test_large_unused_data (test.test_zlib.CompressObjectTestCase) ... ok test_maxlen_custom (test.test_zlib.CompressObjectTestCase) ... ok test_maxlen_large (test.test_zlib.CompressObjectTestCase) ... ok test_maxlenmisc (test.test_zlib.CompressObjectTestCase) ... ok test_odd_flush (test.test_zlib.CompressObjectTestCase) ... ok test_pair (test.test_zlib.CompressObjectTestCase) ... ok test_wbits (test.test_zlib.CompressObjectTestCase) ... ok test_64bit_compress (test.test_zlib.CompressTestCase) ... ok test_big_compress_buffer (test.test_zlib.CompressTestCase) ... ok test_big_decompress_buffer (test.test_zlib.CompressTestCase) ... ok test_custom_bufsize (test.test_zlib.CompressTestCase) ... ok test_incomplete_stream (test.test_zlib.CompressTestCase) ... ok test_large_bufsize (test.test_zlib.CompressTestCase) ... ok test_speech (test.test_zlib.CompressTestCase) ... ok test_speech128 (test.test_zlib.CompressTestCase) ... ok test_badargs (test.test_zlib.ExceptionTestCase) ... ok test_badcompressobj (test.test_zlib.ExceptionTestCase) ... ok test_baddecompressobj (test.test_zlib.ExceptionTestCase) ... ok test_badlevel (test.test_zlib.ExceptionTestCase) ... ok test_decompressobj_badflush (test.test_zlib.ExceptionTestCase) ... ok test_overflow (test.test_zlib.ExceptionTestCase) ... ok test_library_version (test.test_zlib.VersionTestCase) ... ok ---------------------------------------------------------------------- Ran 60 tests in 8.936s OK (skipped=1) 373 tests OK. 1 test failed: test_ctypes 24 tests skipped: test_curses test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_nis test_ossaudiodev test_pep277 test_smtpnet test_socketserver test_startfile test_systemtap test_timeout test_tix test_tk test_ttk_guionly test_unicode_file test_urllib2net test_urllibnet test_winreg test_winsound test_xmlrpc_net test_zipfile64 Tests result: FAILURE error: Bad exit status from /var/tmp/rpm-tmp.9N1ERM (%check) RPM build errors: extra tokens at the end of %endif directive in line 137: %endif # with_systemtap extra tokens at the end of %endif directive in line 484: %endif # with_systemtap extra tokens at the end of %endif directive in line 649: %endif # with_debug_build extra tokens at the end of %endif directive in line 716: %endif # with_gdb_hooks extra tokens at the end of %endif directive in line 728: %endif # with_debug_build extra tokens at the end of %endif directive in line 921: %endif # with_debug_build extra tokens at the end of %endif directive in line 923: %endif # with_systemtap extra tokens at the end of %endif directive in line 999: %endif # with_debug_build extra tokens at the end of %endif directive in line 1002: %endif # run_selftest_suite extra tokens at the end of %endif directive in line 1064: %endif # with_debug_build Bad exit status from /var/tmp/rpm-tmp.9N1ERM (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/python3.5.spec