aboutsummaryrefslogtreecommitdiffstats
path: root/community/xmltv/test_tv_imdb.t.patch
blob: bc065916a1d18a433553f393f585512d68fa5670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 5463cde27030237d79fedd200e49968edaa06f67 Mon Sep 17 00:00:00 2001
From: Nick Morrott <knowledgejunkie@gmail.com>
Date: Thu, 28 Feb 2019 22:50:43 +0000
Subject: [PATCH] test_tv_imdb.t: specify input/output per published CLI
 options, rather than with STDIN/STDOUT redirection

---
 t/test_tv_imdb.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/test_tv_imdb.t b/t/test_tv_imdb.t
index ad504464..4dc281a1 100755
--- a/t/test_tv_imdb.t
+++ b/t/test_tv_imdb.t
@@ -84,9 +84,9 @@ INPUT: foreach my $input (@inputs) {
     my $output="$tmpDir/".File::Basename::basename($input)."-output.xml";
 
     # Make temporary directory and split into it.
-    my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
+    my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
     if ( $input=~m/movies-only/ ) {
-	$cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
+	$cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
     }
     #print STDERR "\nRUN:$cmd\n";
     my $r = system($cmd);