summaryrefslogtreecommitdiff
path: root/test/it_pipe.t
diff options
context:
space:
mode:
authorChristian Schneider2023-07-19 14:19:59 +0200
committerChristian Schneider2023-07-19 14:19:59 +0200
commita873d972cd827197f5314346f17bddd6338c8e52 (patch)
tree3fa1b6a584706fcfefd61fc22d29b9a9b7d77c2c /test/it_pipe.t
parentc3b2d0515f7631fa4ffd693ef17bbb061064b260 (diff)
downloaditools-a873d972cd827197f5314346f17bddd6338c8e52.tar.gz
itools-a873d972cd827197f5314346f17bddd6338c8e52.tar.bz2
itools-a873d972cd827197f5314346f17bddd6338c8e52.zip
Make test work when called from runtests which changes cwd
Diffstat (limited to 'test/it_pipe.t')
-rwxr-xr-xtest/it_pipe.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/it_pipe.t b/test/it_pipe.t
index 79c27b2..734b7fa 100755
--- a/test/it_pipe.t
+++ b/test/it_pipe.t
@@ -2,7 +2,7 @@
<?php
# it::cat frontend
-is(it::cat("test/it_pipe.t")->lines[1], "<?php");
+is(it::cat($argv[0])->lines[1], "<?php");
is(it::cat(['data' => "foo"])->lines(), ["foo"]);
is(it::pipe('echo {x}', ['x' => "foo"])->lines(), ["foo"]);
is(it::pipe('echo {0}{1}', "f", "oo")->lines(), ["foo"]);