Open simonxuhao opened 5 years ago
dmtest should create ~/.dmtest/log and ~/.dmtest/reports directories automatically, it can be pretty confusing for new users.
$ dmtest run --suite thin-provisioning -t BasicTests Loaded suite thin-provisioning BasicTests dd_benchmark...PASS ext4_weirdness...PASS overwriting_various_thin_devices...PASS pool_without_thin_devices_does_not_commit...PASS test_overwrite_a_linear_device...PASS No such file or directory @ rb_sysopen - /root/.dmtest/reports/BasicTests__dd_benchmark.html /root/devel/device-mapper-test-suite/lib/dmtest/report-generators/report_templates.rb:63:in `initialize' /root/devel/device-mapper-test-suite/lib/dmtest/report-generators/report_templates.rb:63:in `open' /root/devel/device-mapper-test-suite/lib/dmtest/report-generators/report_templates.rb:63:in `open' /root/devel/device-mapper-test-suite/lib/dmtest/report-generators/report_templates.rb:63:in `generate_report' /root/devel/device-mapper-test-suite/lib/dmtest/report-generators/report_templates.rb:32:in `unit_detail' /root/devel/device-mapper-test-suite/bin/dmtest:425:in `block in generate' /root/devel/device-mapper-test-suite/bin/dmtest:421:in `glob' /root/devel/device-mapper-test-suite/bin/dmtest:421:in `generate' /root/devel/device-mapper-test-suite/bin/dmtest:388:in `run' /usr/local/rvm/gems/ruby-2.5.3/gems/ejt_command_line-0.0.4/lib/ejt_command_line.rb:178:in `parse' /root/devel/device-mapper-test-suite/bin/dmtest:646:in `block in <top (required)>' /root/devel/device-mapper-test-suite/bin/dmtest:632:in `top_level_handler' /root/devel/device-mapper-test-suite/bin/dmtest:644:in `<top (required)>' /usr/local/rvm/gems/ruby-2.5.3/bin/dmtest:23:in `load' /usr/local/rvm/gems/ruby-2.5.3/bin/dmtest:23:in `<main>' /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `eval' /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `<main>' $ dmtest run --suite thin-provisioning -t BasicTests -n /dd/ Loaded suite thin-provisioning BasicTests No such file or directory @ rb_sysopen - /root/.dmtest/log/BasicTests_dd_benchmark.log /root/devel/device-mapper-test-suite/bin/dmtest:274:in `initialize' /root/devel/device-mapper-test-suite/bin/dmtest:274:in `open' /root/devel/device-mapper-test-suite/bin/dmtest:274:in `test_started' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/util/observable.rb:78:in `block in notify_listeners' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/util/observable.rb:78:in `each' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/util/observable.rb:78:in `notify_listeners' /root/devel/device-mapper-test-suite/bin/dmtest:132:in `block in run_suite' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testcase.rb:74:in `run' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:34:in `block in run' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:33:in `each' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:33:in `run' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:34:in `block in run' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:33:in `each' /usr/local/rvm/gems/ruby-2.5.3/gems/test-unit-1.2.3/lib/test/unit/testsuite.rb:33:in `run' /root/devel/device-mapper-test-suite/bin/dmtest:131:in `run_suite' /root/devel/device-mapper-test-suite/bin/dmtest:215:in `start_mediator' /root/devel/device-mapper-test-suite/bin/dmtest:181:in `start' /root/devel/device-mapper-test-suite/bin/dmtest:386:in `run' /usr/local/rvm/gems/ruby-2.5.3/gems/ejt_command_line-0.0.4/lib/ejt_command_line.rb:178:in `parse' /root/devel/device-mapper-test-suite/bin/dmtest:646:in `block in <top (required)>' /root/devel/device-mapper-test-suite/bin/dmtest:632:in `top_level_handler' /root/devel/device-mapper-test-suite/bin/dmtest:644:in `<top (required)>' /usr/local/rvm/gems/ruby-2.5.3/bin/dmtest:23:in `load' /usr/local/rvm/gems/ruby-2.5.3/bin/dmtest:23:in `<main>' /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `eval' /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `<main>'
dmtest should create ~/.dmtest/log and ~/.dmtest/reports directories automatically, it can be pretty confusing for new users.