mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature #1250
- #1250 Support out-of-tree test runs (thanks to Jakub Wilk).
This commit is contained in:
parent
5cfd7b0cc6
commit
09f577536a
9 changed files with 43 additions and 15 deletions
|
@ -41,10 +41,13 @@ if (open my $fh, '>', 'bug.rc')
|
|||
ok (-r 'bug.rc', 'Created bug.rc');
|
||||
}
|
||||
|
||||
my $source_dir = $0;
|
||||
$source_dir =~ s{[^/]+$}{..};
|
||||
|
||||
# Copy task.sh and make substitutions & additions needed for testing.
|
||||
if (open my $target, '>', 'task.sh')
|
||||
{
|
||||
if (open my $source, '<', '../scripts/bash/task.sh')
|
||||
if (open my $source, '<', "$source_dir/scripts/bash/task.sh")
|
||||
{
|
||||
while (<$source>)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue