tests: Ignore .pspprc in a different way, to fix running TeX on Fedora.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Mar 2021 00:39:20 +0000 (16:39 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 7 Mar 2021 00:40:16 +0000 (16:40 -0800)
On Fedora, the 'tex' program generates per-user formats in the user's
home directory.  With the way that atlocal previously set $HOME to
/nonexistent, this failed, because formats can't be found or created in
/nonexistent.  This fixes the problem by using a different way to avoid
making pspp look for .pspprc.

tests/atlocal.in

index 5ba794cdd0638b22800bc5e3c9a5509c8346172c..66292efe04821be02cf831fd2b7f99610d609c75 100644 (file)
@@ -65,8 +65,8 @@ export GZIP
 WINEPREFIX=$HOME/.wine    # Work around the following kludge to keep wine happy
 export WINEPREFIX
 
-HOME=/nonexistent              # Kluge to make PSPP ignore $HOME/.pspprc.
-export HOME
+# Make PSPP ignore $HOME/.pspprc.
+alias pspp='pspp --no-statrc'
 
 # Avoids error messages during tests if $TERM is set to an unknown terminal.
 TERM=; unset TERM