+def traversal_os_mount
- OS_MOUNT.each do |os_mount|
- traversal_test_os(os_mount)
- end
+end
+def traversal_test_os(os_mount)
- TEST_OS.each do |os_str|
- test_rootfs(os_str, os_mount)
- end
Pls delete this balnk line.
after end, no need blank line? Thanks, Yinsi
Thanks, Xijian
+end
+def test_rootfs(os_str, os_mount)
- message = submit_job(os_str, os_mount).chomp
- job_id = message.split('=')[1]
- run_qemu
- job_result = if message.include? 'error'
[]
else
find_by_id(job_id)
end
- report_all = job_id.split(', ') + os_str.split + os_mount.split + job_result
- write_report(report_all)
+end
+def cron_job
- test = Rufus::Scheduler.new
- test.cron '0 8-22 * * *' do
- traversal_os_mount
- end
- mail = Rufus::Scheduler.new
- mail.cron '0 8 * * 1' do
- mail_report
- end
- [test, mail].each(&:join)
+end
+cron_job
2.23.0