21184: Accept singularity env var passed through to container. 21184-fix-build
authorTom Clegg <tom@curii.com>
Wed, 8 Nov 2023 20:30:45 +0000 (15:30 -0500)
committerTom Clegg <tom@curii.com>
Wed, 8 Nov 2023 20:30:45 +0000 (15:30 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/crunchrun/executor_test.go

index f1a873ae8dcc9b86d79ddc0170c8a44743f8dd81..3a91c7864113ce5b422c24d0a5a02ed690d51fdc 100644 (file)
@@ -134,6 +134,10 @@ func (s *executorSuite) TestExecCleanEnv(c *C) {
                        // singularity also sets this by itself (v3.5.2, but not v3.7.4)
                case "PROMPT_COMMAND", "PS1", "SINGULARITY_BIND", "SINGULARITY_COMMAND", "SINGULARITY_ENVIRONMENT":
                        // singularity also sets these by itself (v3.7.4)
+               case "SINGULARITY_NO_EVAL":
+                       // our singularity driver sets this to control
+                       // singularity behavior, and it gets passed
+                       // through to the container
                default:
                        got[kv[0]] = kv[1]
                }