Permalink
Browse files

Use /tmp instead of $HOME for testing

$HOME might not be accessible for the database server.
  • Loading branch information...
1 parent 201dfdf commit 190c028e7c4cf67b1aebaa057ca1424dadd42d6f @petere committed Mar 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test.sql
View
@@ -23,7 +23,7 @@ CREATE FUNCTION shtrigger() RETURNS trigger AS '
for arg do
echo "Arg is $arg"
done
-) >> $HOME/voodoo-pgplsh-test
+) >> /tmp/voodoo-pgplsh-test
exit 0
' LANGUAGE plsh;
@@ -36,5 +36,5 @@ INSERT INTO pfoo VALUES (1, 'one');
INSERT INTO pfoo VALUES (2, 'two');
INSERT INTO pfoo VALUES (3, 'three');
-\!cat $HOME/voodoo-pgplsh-test
-\!rm $HOME/voodoo-pgplsh-test
+\! cat /tmp/voodoo-pgplsh-test
+\! rm /tmp/voodoo-pgplsh-test

0 comments on commit 190c028

Please sign in to comment.