package Test2::Harness::Runner::Run; use strict; use warnings; our $VERSION = '1.000179'; use Carp qw/croak/; use File::Spec(); use Test2::Harness::Util::File::JSONL; use parent 'Test2::Harness::Run'; use Test2::Harness::Util::HashBase qw{ SUPER::init(); croak "'workdir' is a required attribute" unless $self->{+WORKDIR}; } sub run_dir { $_[0]->{+RUN_DIR} //= $_[0]->SUPER::run_dir($_[0]->{+WORKDIR}) } sub jobs_file { $_[0]->{+JOBS_FILE} //= File::Spec->catfile($_[0]->run_dir, 'jobs.jsonl') } sub jobs { $_[0]->{+JOBS} //= Test2::Harness::Util::File::JSONL->new(name => $_[0]->jobs_file, use_write_lock => 1) } 1; __END__ =pod =encoding UTF-8 =head1 NAME Test2::Harness::Runner::Run - Runner specific subclass of a test run. =head1 DESCRIPTION Runner subclass of L for use inside the runner. =head1 METHODS In addition to the methods provided by L, these are provided. =over 4 =item $dir = $run->workdir Runner directory. =item $dir = $run->run_dir Directory specific to this run. =item $path = $run->jobs_file Path to the C file. =item $fh = $run->jobs Filehandle to C. =back =head1 SOURCE The source code repository for Test2-Harness can be found at F. =head1 MAINTAINERS =over 4 =item Chad Granum Eexodist7@gmail.comE =back =head1 AUTHORS =over 4 =item Chad Granum Eexodist7@gmail.comE =back =head1 COPYRIGHT Copyright 2020 Chad Granum Eexodist7@gmail.comE. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See F =cut