Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/apache-commons-exec.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201801-8060020220519080214-c0229ad2-build-63163-21484/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/apache-commons-exec.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 Wrote: /builddir/build/SRPMS/apache-commons-exec-1.3-8.module+el8.6.0+500+11037448.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/apache-commons-exec.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201801-8060020220519080214-c0229ad2-build-63163-21484/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/apache-commons-exec.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Nd5ZfT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf commons-exec-1.3-src + /usr/bin/gzip -dc /builddir/build/SOURCES/commons-exec-1.3-src.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd commons-exec-1.3-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS + sed -i.orig 's/\r//' LICENSE.txt + touch -r LICENSE.txt.orig LICENSE.txt + rm LICENSE.txt.orig + for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS + sed -i.orig 's/\r//' NOTICE.txt + touch -r NOTICE.txt.orig NOTICE.txt + rm NOTICE.txt.orig + for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS + sed -i.orig 's/\r//' RELEASE-NOTES.txt + touch -r RELEASE-NOTES.txt.orig RELEASE-NOTES.txt + rm RELEASE-NOTES.txt.orig + for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS + sed -i.orig 's/\r//' STATUS + touch -r STATUS.orig STATUS + rm STATUS.orig + chmod a+x src/test/scripts/acrord32.sh src/test/scripts/environment.sh src/test/scripts/error.sh src/test/scripts/forever.sh src/test/scripts/invoker.sh src/test/scripts/ping.sh src/test/scripts/printargs.sh src/test/scripts/redirect.sh src/test/scripts/standalone.sh src/test/scripts/stdin.sh src/test/scripts/test.sh + find -name Exec57Test.java -delete + /usr/libexec/platform-python /usr/share/java-utils/mvn_file.py :commons-exec commons-exec apache-commons-exec + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KBfw8T + umask 022 + cd /builddir/build/BUILD + cd commons-exec-1.3-src + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc Executing: xmvn --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:javadoc', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [WARNING] The project org.apache.commons:commons-exec:jar:1.3 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html [INFO] [INFO] ------------------< org.apache.commons:commons-exec >------------------- [INFO] Building Apache Commons Exec 1.3 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ commons-exec --- [INFO] [INFO] --- build-helper-maven-plugin:1.9.1:parse-version (parse-version) @ commons-exec --- [INFO] [INFO] --- maven-antrun-plugin:1.8:run (javadoc.resources) @ commons-exec --- [INFO] Executing tasks main: [copy] Copying 2 files to /builddir/build/BUILD/commons-exec-1.3-src/target/apidocs/META-INF [INFO] Executed tasks [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ commons-exec --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ commons-exec --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builddir/build/BUILD/commons-exec-1.3-src/src/main/resources [INFO] Copying 2 resources to META-INF [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ commons-exec --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 32 source files to /builddir/build/BUILD/commons-exec-1.3-src/target/classes [INFO] [INFO] --- maven-bundle-plugin:3.5.0:manifest (bundle-manifest) @ commons-exec --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ commons-exec --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builddir/build/BUILD/commons-exec-1.3-src/src/test/resources [INFO] Copying 2 resources to META-INF [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ commons-exec --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 16 source files to /builddir/build/BUILD/commons-exec-1.3-src/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ commons-exec --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.apache.commons.exec.issues.Exec44Test [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.031 s - in org.apache.commons.exec.issues.Exec44Test [INFO] Running org.apache.commons.exec.issues.Exec60Test [ping.sh] Blocking for 2 seconds ... ping: socket: Operation not permitted [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! - in org.apache.commons.exec.issues.Exec60Test [ERROR] testExec_60(org.apache.commons.exec.issues.Exec60Test) Time elapsed: 0.001 s <<< FAILURE! java.lang.AssertionError: Watchdog killed the process at org.apache.commons.exec.issues.Exec60Test.testExec_60(Exec60Test.java:76) [INFO] Running org.apache.commons.exec.issues.Exec34Test [ping.sh] Blocking for 10 seconds ... ping: socket: Operation not permitted [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.043 s <<< FAILURE! - in org.apache.commons.exec.issues.Exec34Test [ERROR] testExec34_2(org.apache.commons.exec.issues.Exec34Test) Time elapsed: 0.043 s <<< FAILURE! java.lang.AssertionError: Watchdog should have killed the process at org.apache.commons.exec.issues.Exec34Test.testExec34_2(Exec34Test.java:88) [INFO] Running org.apache.commons.exec.issues.Exec49Test Preparing to execute process - commandLine=[/bin/ls, /opt] Process spun off successfully - process=/bin/ls Preparing to execute process - commandLine=[/bin/ls, /opt] Process spun off successfully - process=/bin/ls [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.102 s - in org.apache.commons.exec.issues.Exec49Test [INFO] Running org.apache.commons.exec.issues.Exec33Test FOO.. [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.688 s - in org.apache.commons.exec.issues.Exec33Test [INFO] Running org.apache.commons.exec.issues.Exec36Test [WARNING] Tests run: 5, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.008 s - in org.apache.commons.exec.issues.Exec36Test [INFO] Running org.apache.commons.exec.issues.Exec41Test ping: socket: Operation not permitted Process completed in 2 millis; below is its output org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) Process completed in 5 millis; below is its output [ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.006 s <<< FAILURE! - in org.apache.commons.exec.issues.Exec41Test [ERROR] testExec41WithStreams(org.apache.commons.exec.issues.Exec41Test) Time elapsed: 0.001 s <<< FAILURE! java.lang.AssertionError: The process was killed by the watchdog at org.apache.commons.exec.issues.Exec41Test.testExec41WithStreams(Exec41Test.java:96) [ERROR] testExec41WithoutStreams(org.apache.commons.exec.issues.Exec41Test) Time elapsed: 0.005 s <<< FAILURE! java.lang.AssertionError: The process was killed by the watchdog at org.apache.commons.exec.issues.Exec41Test.testExec41WithoutStreams(Exec41Test.java:143) [INFO] Running org.apache.commons.exec.CommandLineTest testToStringTroubleshooting cmd1: [sh, -c, echo 1] cmd2: [sh, -c, echo, 1] [INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s - in org.apache.commons.exec.CommandLineTest [INFO] Running org.apache.commons.exec.DefaultExecutorTest gdal_translate HDF5:"/home/kk/grass/data/4404.he5"://HDFEOS/GRIDS/OMI_Column_Amount_O3/Data_Fields/ColumnAmountO3/home/kk/4.tif FOO.. FOO.. [WARNING] Tests run: 30, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 42.342 s - in org.apache.commons.exec.DefaultExecutorTest [INFO] Running org.apache.commons.exec.environment.EnvironmentUtilsTest [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.apache.commons.exec.environment.EnvironmentUtilsTest [INFO] Running org.apache.commons.exec.StandAloneTest mkdir: cannot create directory ‘target/’: File exists [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 s - in org.apache.commons.exec.StandAloneTest [INFO] Running org.apache.commons.exec.TutorialTest [main] Preparing print job ... [print] Executing blocking print job ... [acrord32] Printing the following document : "/Documents and Settings/foo.pdf" [acrord32] Finished printing [main] Successfully sent the print job ... [main] Test is exiting but waiting for the print job to finish... [main] The print job has finished ... [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.011 s - in org.apache.commons.exec.TutorialTest [INFO] Running org.apache.commons.exec.util.StringUtilTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.commons.exec.util.StringUtilTest [INFO] Running org.apache.commons.exec.util.MapUtilTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.commons.exec.util.MapUtilTest [INFO] Running org.apache.commons.exec.LogOutputStreamTest MAVEN_CMD_LINE_ARGS= --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:javadoc org.fedoraproject.xmvn:xmvn-mojo:builddep RPM_OS=linux JAVACMD=/usr/lib/jvm/java-1.8.0-openjdk/bin/java _=/usr/bin/env LANG=C HISTCONTROL=ignoredups RPM_ARCH=noarch HOSTNAME= OLDPWD=/builddir/build/BUILD/commons-exec-1.3-src CONFIG_SITE=NONE RPM_PACKAGE_RELEASE=8.module+el8.6.0+500+11037448 JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk RPM_BUILD_DIR=/builddir/build/BUILD RPM_LD_FLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld which_declare=declare -f USER=mockbuild RPM_SOURCE_DIR=/builddir/build/SOURCES PWD=/builddir/build/BUILD/commons-exec-1.3-src RPM_PACKAGE_VERSION=1.3 HOME=/builddir LC_CTYPE=C.UTF-8 PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn MAVEN_PROJECTBASEDIR=/builddir/build/BUILD/commons-exec-1.3-src RPM_BUILD_ROOT=/builddir/build/BUILDROOT/apache-commons-exec-1.3-8.module+el8.6.0+500+11037448.noarch RPM_BUILD_NCPUS=16 MAIL=/var/spool/mail/mockbuild TERM=vt100 SHELL=/bin/bash RPM_PACKAGE_NAME=apache-commons-exec RPM_DOC_DIR=/usr/share/doc SHLVL=5 PROMPT_COMMAND=printf "\033]0;\007" LOGNAME=mockbuild PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PKG_CONFIG_PATH=:/usr/lib/pkgconfig:/usr/share/pkgconfig RPM_OPT_FLAGS=-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 HISTSIZE=1000 BASH_FUNC_which%%=() { ( alias; eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ } [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in org.apache.commons.exec.LogOutputStreamTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] Exec34Test.testExec34_2:88 Watchdog should have killed the process [ERROR] Exec41Test.testExec41WithStreams:96 The process was killed by the watchdog [ERROR] Exec41Test.testExec41WithoutStreams:143 The process was killed by the watchdog [ERROR] Exec60Test.testExec_60:76 Watchdog killed the process [INFO] [ERROR] Tests run: 94, Failures: 4, Errors: 0, Skipped: 4 [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping Apache Commons Exec [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:13 min [INFO] Finished at: 2022-05-19T20:49:55+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project commons-exec: There are test failures. [ERROR] [ERROR] Please refer to /builddir/build/BUILD/commons-exec-1.3-src/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException error: Bad exit status from /var/tmp/rpm-tmp.KBfw8T (%build) Bad exit status from /var/tmp/rpm-tmp.KBfw8T (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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 noarch --nodeps /builddir/build/SPECS/apache-commons-exec.spec