Created attachment 3776 [details] LOGFILE BUILD: 2.3 M4: rc2-meta-intel-e5aa1ac23669a45491de9ecffac491c01e70203f ENVIRONMENT: corei7-64_lsb_NUC STEPS TO REPRODUCE: 1. Download poky source and prepare the build environment 2. Boot the image in a NUC ACTUAL OUTCOME: Test failed on: RESULTS - logrotate.LogrotateTest.test_2_logrotate - Testcase 1542: FAILED Traceback (most recent call last): File "/home/david/poky64lsb2/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f return func(*args, **kwargs) File "/home/david/poky64lsb2/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f return func(*args, **kwargs) File "/home/david/poky64lsb2/meta/lib/oeqa/runtime/cases/logrotate.py", line 36, in test_2_logrotate self.assertEqual(status, 0, msg = msg) AssertionError: 1 != 0 : logrotate service could not be reloaded. Status and output: 1 and EXPECTED OUTCOME: Testcase should be PASSED ---See the attached file
Hi, What build configurations are used to bitbake? I bitbake core-image-lsb with following configuration in local.conf: MACHINE ??= "intel-corei7-64" DISTRO ?= "poky-lsb" It doesn't boot up from NUC. However, I tested the same image on MinnowBoard Max, and it is able to boot.
Hi, I am using master branch for bitbake. I performed Runtime Tests on Hardware with TEST_TARGET= "simpleremote". It looked like this test_2_logrotate test is passing. Log: ... ... DEBUG: Checking if at least one of logrotate is installed NOTE: test_1_logrotate_setup (logrotate.LogrotateTest) ... ok NOTE: test_2_logrotate (logrotate.LogrotateTest) ... ok DEBUG: Checking if at least one of sysklogd, busybox-syslog is installed NOTE: test_syslog_running (oe_syslog.SyslogTest) ... ok ... ... RESULTS - logrotate.LogrotateTest.test_1_logrotate_setup - Testcase 1544: PASSED RESULTS - logrotate.LogrotateTest.test_2_logrotate - Testcase 1542: PASSED RESULTS - oe_syslog.SyslogTest.test_syslog_running - Testcase 201: PASSED RESULTS - oe_syslog.SyslogTestConfig.test_syslog_logger - Testcase 1149: PASSED RESULTS - oe_syslog.SyslogTestConfig.test_syslog_restart - Testcase 1150: PASSED ... ... Below show the customized configuration used in my local.conf. MACHINE ??= "intel-corei7-64" DISTRO ?= "poky-lsb" INHERIT += "testimage" TEST_TARGET = "simpleremote" TEST_SERVER_IP = "10.54.77.139" TEST_TARGET_IP = "172.30.199.18" TEST_SUITES_append = " logrotate"
Hi I used this configuration: > MACHINE ??= "intel-corei7-64" > DISTRO ?= "poky-lsb" I'll leave attached log (local.conf) (In reply to comment #1) > Hi, > What build configurations are used to bitbake? > > I bitbake core-image-lsb with following configuration in local.conf: > > MACHINE ??= "intel-corei7-64" > DISTRO ?= "poky-lsb" > > It doesn't boot up from NUC. However, I tested the same image on MinnowBoard > Max, and it is able to boot.
Created attachment 3790 [details] local.conf
(In reply to comment #4) > Created attachment 3790 [details] > local.conf Thanks for the local.conf. Looked like we using the same configurations for MACHINE, DISTRO and TEST_TARGET. I did another build again and I still got logrotate test 2 passing. I attached my log file (log.do_testimage_6June) and local.conf(local.conf_6June) here. Let me know if I missing something. By the way, I need to append logrotate into the TEST_SUITES, else LogrotateTest test will not be performed during testimage. TEST_SUITES_append = " logrotate"
Created attachment 3797 [details] 6June do_testimage log and local.conf
(In reply to comment #5) > (In reply to comment #4) > > Created attachment 3790 [details] > > local.conf > > Thanks for the local.conf. > Looked like we using the same configurations for MACHINE, DISTRO and > TEST_TARGET. > I did another build again and I still got logrotate test 2 passing. > I attached my log file (log.do_testimage_6June) and > local.conf(local.conf_6June) here. Let me know if I missing something. > > By the way, I need to append logrotate into the TEST_SUITES, else > LogrotateTest test will not be performed during testimage. > TEST_SUITES_append = " logrotate" "logrotate" should be executed without adding it to the TEST_SUITES variable because testimage automatically discover the features based on the manifest, hence if logrotate is present on the image test should be executed.
(In reply to comment #5) > (In reply to comment #4) > > Created attachment 3790 [details] > > local.conf > > Thanks for the local.conf. > Looked like we using the same configurations for MACHINE, DISTRO and > TEST_TARGET. > I did another build again and I still got logrotate test 2 passing. > I attached my log file (log.do_testimage_6June) and > local.conf(local.conf_6June) here. Let me know if I missing something. > > By the way, I need to append logrotate into the TEST_SUITES, else > LogrotateTest test will not be performed during testimage. > TEST_SUITES_append = " logrotate" Are you using the intel-corei7-64-lsb image?
(In reply to comment #7) > (In reply to comment #5) > > (In reply to comment #4) > > > Created attachment 3790 [details] > > > local.conf > > > > Thanks for the local.conf. > > Looked like we using the same configurations for MACHINE, DISTRO and > > TEST_TARGET. > > I did another build again and I still got logrotate test 2 passing. > > I attached my log file (log.do_testimage_6June) and > > local.conf(local.conf_6June) here. Let me know if I missing something. > > > > By the way, I need to append logrotate into the TEST_SUITES, else > > LogrotateTest test will not be performed during testimage. > > TEST_SUITES_append = " logrotate" > > "logrotate" should be executed without adding it to the TEST_SUITES variable > because testimage automatically discover the features based on the manifest, > hence if logrotate is present on the image test should be executed. I bitbake with core-image-lsb. From the environment variables core-image-lsb doesn't include the logrotate in TEST_SUITS. Thus, I need to add that. # $DEFAULT_TEST_SUITES_pn-core-image-lsb # set /workdir/poky_sato/meta/classes/testimage.bbclass:49 # "${NETTESTSUITE} pam parselogs ${RPMTESTSUITE}" DEFAULT_TEST_SUITES_pn-core-image-lsb="ping ssh df date scp oe_syslog pam parselogs dnf rpm"
(In reply to comment #8) > (In reply to comment #5) > > (In reply to comment #4) > > > Created attachment 3790 [details] > > > local.conf > > > > Thanks for the local.conf. > > Looked like we using the same configurations for MACHINE, DISTRO and > > TEST_TARGET. > > I did another build again and I still got logrotate test 2 passing. > > I attached my log file (log.do_testimage_6June) and > > local.conf(local.conf_6June) here. Let me know if I missing something. > > > > By the way, I need to append logrotate into the TEST_SUITES, else > > LogrotateTest test will not be performed during testimage. > > TEST_SUITES_append = " logrotate" > > Are you using the intel-corei7-64-lsb image? Yup. I bitbake core-image-lsb, by using the attached local.conf(6June).
(In reply to comment #10) > (In reply to comment #8) > > (In reply to comment #5) > > > (In reply to comment #4) > > > > Created attachment 3790 [details] > > > > local.conf > > > > > > Thanks for the local.conf. > > > Looked like we using the same configurations for MACHINE, DISTRO and > > > TEST_TARGET. > > > I did another build again and I still got logrotate test 2 passing. > > > I attached my log file (log.do_testimage_6June) and > > > local.conf(local.conf_6June) here. Let me know if I missing something. > > > > > > By the way, I need to append logrotate into the TEST_SUITES, else > > > LogrotateTest test will not be performed during testimage. > > > TEST_SUITES_append = " logrotate" > > > > Are you using the intel-corei7-64-lsb image? > > Yup. I bitbake core-image-lsb, by using the attached local.conf(6June). The tests are executed on a "core-image-lsb-sdk"
(In reply to comment #11) > (In reply to comment #10) > > (In reply to comment #8) > > > (In reply to comment #5) > > > > (In reply to comment #4) > > > > > Created attachment 3790 [details] > > > > > local.conf > > > > > > > > Thanks for the local.conf. > > > > Looked like we using the same configurations for MACHINE, DISTRO and > > > > TEST_TARGET. > > > > I did another build again and I still got logrotate test 2 passing. > > > > I attached my log file (log.do_testimage_6June) and > > > > local.conf(local.conf_6June) here. Let me know if I missing something. > > > > > > > > By the way, I need to append logrotate into the TEST_SUITES, else > > > > LogrotateTest test will not be performed during testimage. > > > > TEST_SUITES_append = " logrotate" > > > > > > Are you using the intel-corei7-64-lsb image? > > > > Yup. I bitbake core-image-lsb, by using the attached local.conf(6June). > > The tests are executed on a "core-image-lsb-sdk" Got it. I did a retest today with "core-image-lsb-sdk" where I do not need to have logrotate appended on the TEST_SUITES. The logrotate.LogrotateTest.test_2_logrotate is still passing. Log file(log.do_testimage_14June) is attached.
Created attachment 3816 [details] do_testimage log file with core-image-lsb-sdk build
(In reply to comment #13) > Created attachment 3816 [details] > do_testimage log file with core-image-lsb-sdk build Hi I did retest the image and you're right , the logrotate tests are PASSED. I've Downloaded the image again , and I made all the setup again from zero, and it works ok, something strange happened, maybe the first image that I've downloaded was corrupt or something while making the setup, whatever happened we can close this. I attached the log
Created attachment 3818 [details] LOG_PASSED
Rerun the logrotate test and not able to reproduce this issue.