Module: Debci::Test::Paths

Included in:
Job
Defined in:
lib/debci/test/paths.rb

Instance Method Summary collapse

Instance Method Details

#autopkgtest_dirObject



10
11
12
# File 'lib/debci/test/paths.rb', line 10

def autopkgtest_dir
  @autopkgtest_dir ||= root / 'autopkgtest' / suite / arch / package.prefix / package.name / run_id.to_s
end

#cleanupObject



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_logObject



14
15
16
# File 'lib/debci/test/paths.rb', line 14

def debci_log
  @debci_log ||= root / 'packages' / suite / arch / package.prefix / package.name / "#{run_id}.log"
end

#result_jsonObject



18
19
20
# File 'lib/debci/test/paths.rb', line 18

def result_json
  @result_json ||= root / 'packages' / suite / arch / package.prefix / package.name / "#{run_id}.json"
end

#rootObject



6
7
8
# File 'lib/debci/test/paths.rb', line 6

def root
  @root ||= Pathname(Debci.config.data_basedir)
end