tests/test-encode.t
changeset 37461 538353b80676
parent 16913 f2719b387380
child 48335 b7fde9237c92
--- a/tests/test-encode.t	Sat Apr 07 21:14:16 2018 +0900
+++ b/tests/test-encode.t	Sat Apr 07 21:17:50 2018 +0900
@@ -59,5 +59,14 @@
   this is a test
   $ hg -R .. cat --decode ../a.gz | gunzip
   this is a test
+  $ cd ..
+
+check tempfile filter
+
+  $ hg cat a.gz --decode --config 'decode.*.gz=tempfile:gzip -c INFILE > OUTFILE' | gunzip
+  this is a test
+  $ hg cat a.gz --decode --config 'decode.*.gz=tempfile:sh -c "exit 1"'
+  abort: command '*' failed: exited with status 1 (glob)
+  [255]
 
   $ cd ..