aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-07-07 12:49:18 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-07-07 12:49:18 -0400
commit9a8f58331067e18a5dc10670e687f21ae6a2172e (patch)
treed57a1c845114c3e0010766e0728af65828417c65 /src/tutorial/basics.source
parent414bef30bfab20451e15fe799642b52166db8c34 (diff)
downloadpostgresql-9a8f58331067e18a5dc10670e687f21ae6a2172e.tar.gz
postgresql-9a8f58331067e18a5dc10670e687f21ae6a2172e.zip
Fix portability issue in pg_upgrade test script: avoid $PWD.
SUSv2-era shells don't set the PWD variable, though anything more modern does. In the buildfarm environment this could lead to test.sh executing with PWD pointing to $HOME or another high-level directory, so that there were conflicts between concurrent executions of the test in different branch subdirectories. This appears to be the explanation for recent intermittent failures on buildfarm members binturong and dingo (and might well have something to do with the buildfarm script's failure to capture log files from pg_upgrade tests, too). To fix, just use `pwd` in place of $PWD. AFAICS test.sh is the only place in our source tree that depended on $PWD. Back-patch to all versions containing this script. Per buildfarm. Thanks to Oskari Saarenmaa for diagnosing the problem.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions