Bugzilla – Bug 1222923
erlang-rebar-testsuite failst to build on Leap 15.6
Last modified: 2024-05-06 08:35:52 UTC
Hello package erlang-rebar-testsuite failst to build on Leap 15.6 because one or more eunit tests failed. https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/erlang-rebar-testsuite/standard/x86_64 35s] Compiled test/rebar_eunit_tests.erl [ 35s] ERROR: sh(cp -R tmp_file_utils/source\ dir/file\ 1 "tmp_file_utils/dest (dir)") [ 35s] failed with return code 1 and the following output: [ 35s] cp: cannot create regular file 'tmp_file_utils/dest (dir)/file 1': Permission denied [ 35s] [ 35s] ERROR: sh(cp -R tmp_file_utils/source\ dir "tmp_file_utils/dest (dir)") [ 35s] failed with return code 1 and the following output: [ 35s] cp: cannot create regular file 'tmp_file_utils/dest (dir)/source dir/file 1': Permission denied [ 35s] [ 47s] rebar_eunit_tests: -assert_full_coverage/1-fun-2- (Modules that include the EUnit header can still have 100% coverage)...*failed* [ 47s] in function rebar_eunit_tests:'-assert_full_coverage/1-fun-2-'/1 (test/rebar_eunit_tests.erl, line 561) [ 47s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 47s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 47s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 47s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 47s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 47s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 47s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 47s] **error:{assert,[{module,rebar_eunit_tests}, [ 47s] {line,561}, [ 47s] {expression,"length ( Result ) =:= 1"}, [ 47s] {expected,true}, [ 47s] {value,false}]} [ 47s] output:<<"">> [ 47s] [ 48s] ERROR: Cannot parse eunit version string: [ 48s] ERROR: Cannot parse eunit version string: abc [ 49s] rebar_xref_eunit:19: -xref_test_/0-fun-23- (Undefined function call)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-23-'/1 (test/rebar_xref_eunit.erl, line 20) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,20}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_othermod:somefunc/0 calls undefined function myapp_somemod:notavailable/1\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:21: -xref_test_/0-fun-21- (Deprecated function)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-21-'/1 (test/rebar_xref_eunit.erl, line 22) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,22}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_mymod:fdeprecated/0 is deprecated function\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:23: -xref_test_/0-fun-19- (Deprecated function call)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-19-'/1 (test/rebar_xref_eunit.erl, line 24) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,24}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_othermod:somefunc/0 calls deprecated function myapp_mymod:fdeprecated/0\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:25: -xref_test_/0-fun-17- (Unused local)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-17-'/1 (test/rebar_xref_eunit.erl, line 26) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,26}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_mymod:localfunc2/0 is unused local function\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:27: -xref_test_/0-fun-15- (Unused export 1)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-15-'/1 (test/rebar_xref_eunit.erl, line 28) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,28}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_behaviour1:behaviour_info/1 is unused export\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:29: -xref_test_/0-fun-13- (Unused export 2)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-13-'/1 (test/rebar_xref_eunit.erl, line 30) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,30}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_behaviour2:behaviour_info/1 is unused export\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:31: -xref_test_/0-fun-11- (Unused export 3)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-11-'/1 (test/rebar_xref_eunit.erl, line 32) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,32}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_mymod:other2/1 is unused export\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 49s] rebar_xref_eunit:33: -xref_test_/0-fun-9- (Unused export 4)...*failed* [ 49s] in function rebar_xref_eunit:'-xref_test_/0-fun-9-'/1 (test/rebar_xref_eunit.erl, line 34) [ 49s] in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71) [ 49s] in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368) [ 49s] in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526) [ 49s] in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468) [ 49s] in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 358) [ 49s] in call from eunit_proc:run_group/2 (eunit_proc.erl, line 582) [ 49s] **error:{assert,[{module,rebar_xref_eunit}, [ 49s] {line,34}, [ 49s] {expression,"string : str ( RebarOut , \"myapp_othermod:somefunc/0 is unused export\" ) =/= 0"}, [ 49s] {expected,true}, [ 49s] {value,false}]} [ 49s] output:<<"">> [ 49s] [ 52s] ======================================================= [ 52s] Failed: 9. Skipped: 0. Passed: 136. [ 52s] ERROR: One or more eunit tests failed. [ 52s] ERROR: eunit failed while processing /home/abuild/rpmbuild/BUILD/rebar-2.6.4+git20180201.b6d3094: rebar_abort [ 52s] error: Bad exit status from /var/tmp/rpm-tmp.rovZz4 (%check) [ 52s] [ 52s] [ 52s] RPM build errors: [ 52s] Bad exit status from /var/tmp/rpm-tmp.rovZz4 (%check) [ 52s] ### VM INTERACTION START ### [ 53s] [0;1;38;5;185mFailed to write wtmp record, ignoring: Read-only file system[0m [ 53s] [0;1;38;5;185mFailed to write utmp record: Read-only file system[0m
fixed by https://build.opensuse.org/request/show/1170937