Catch missing environment variable

Issue #360 closed
Gabrielle Allen created an issue

In following thornlist $ARR is not set and GetComponents does not catch this. It looks like libjpeg is checked out, but can't find it anywhere.

!CRL_VERSION = 1.0

!DESC "Demo Parameter File Using WaveToy Application With Cool Tools (Development)"

!DEFINE ROOT = Cactus

Cactus Flesh

!TARGET = $ROOT !TYPE = svn !AUTH_URL = https://svn.cactuscode.org/flesh/trunk !URL = http://svn.cactuscode.org/flesh/trunk !CHECKOUT = Cactus !NAME = .

Cactus thorns

!TARGET = Cactus/arrangements !TYPE = svn !AUTH_URL = https://svn.cactuscode.org/arrangements/$1/$2/trunk !URL = http://svn.cactuscode.org/arrangements/$1/$2/trunk !CHECKOUT = CactusBase/Boundary
CactusBase/CoordBase CactusBase/CartGrid3D
CactusBase/IOASCII
CactusBase/IOUtil
CactusBase/IOBasic
CactusBase/LocalReduce
CactusBase/SymBase CactusBase/Time CactusConnect/HTTPD CactusConnect/HTTPDExtra CactusConnect/Socket CactusPUGH/PUGH
CactusPUGH/PUGHSlab CactusPUGH/PUGHReduce CactusPUGHIO/IsoSurfacer CactusIO/IOJpeg CactusWave/WaveToyC
CactusWave/IDScalarWaveC
CactusWave/WaveBinarySource

Additional Cactus thorns

!TARGET = $ARR !TYPE = svn !AUTH_URL = https://svn.cactuscode.org/projects/$1/$2/trunk !URL = http://svn.cactuscode.org/projects/$1/$2/trunk !CHECKOUT = ExternalLibraries/libjpeg

Keyword:

Comments (2)

  1. Eric Seidel
    • changed status to resolved
    • removed comment

    Ok I found the problem. GetComponents was checking \-escaped variables against ENV instead of regular, undefined variables. Your thornlist will error properly now :)

  2. Log in to comment