Module: Debci::Test::Paths
Instance Method Summary collapse
- #autopkgtest_dir ⇒ Object
- #cleanup ⇒ Object
- #debci_log ⇒ Object
- #result_json ⇒ Object
- #root ⇒ Object
Instance Method Details
#autopkgtest_dir ⇒ Object
10 11 12 |
# File 'lib/debci/test/paths.rb', line 10 def autopkgtest_dir @autopkgtest_dir ||= root / 'autopkgtest' / suite / arch / prefix / package / run_id.to_s end |
#cleanup ⇒ Object
22 23 24 25 26 |
# File 'lib/debci/test/paths.rb', line 22 def cleanup autopkgtest_dir.rmtree if autopkgtest_dir.directory? debci_log.unlink if debci_log.exist? result_json.unlink if result_json.exist? end |
#debci_log ⇒ Object
14 15 16 |
# File 'lib/debci/test/paths.rb', line 14 def debci_log @debci_log ||= root / 'packages' / suite / arch / prefix / package / (run_id.to_s + '.log') end |
#result_json ⇒ Object
18 19 20 |
# File 'lib/debci/test/paths.rb', line 18 def result_json @result_json ||= root / 'packages' / suite / arch / prefix / package / (run_id.to_s + '.json') end |