Commit Diff


commit - b9e3c50406aeac333955263c028944bb064a695b
commit + d3b82051e9673733a447d3fec7d1326f0a87e359
blob - 2472382deeac173b50bc5d92fdf40ad34e64d30f
blob + b8e636eaaecf687d7abff3f6badf821737540e70
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -25,6 +25,14 @@ export GOT_LOG_DEFAULT_LIMIT=0
 export GOT_TEST_ROOT="/tmp"
 
 export MALLOC_OPTIONS=S
+
+# Check to see if PLATFORM has a value.  PLATFORM is populated when running
+# via `./configure && make` but this isn't guaranteed if an individual test is
+# run directly, such as `regress/cmdline/tag.sh`.  In such cases, PLATFORM
+# will be empty, but we still want to use it.  Since we test for non-linux
+# values, only set PLATFORM if we're running on Linu so that the correct
+# commands are used.
+[ -z "$PLATFORM" ] && [ "$OSTYPE" = "linux-gnu" ] && PLATFORM="linux"
 
 date()
 {