Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
orchestrator
Commits
db4fbb93
Commit
db4fbb93
authored
Sep 21, 2017
by
Thanassis Tsiodras
Browse files
Support env vars that use '=' in their values
parent
1c3979f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
orchestrator/taste-orchestrator.py
View file @
db4fbb93
...
...
@@ -2071,7 +2071,17 @@ def ParsePartitionInformation():
g_stageLog
.
info
(
"Assigning target-specific environment variables..."
)
envvars
=
re
.
sub
(
r
'^envvars\s* '
,
''
,
line
)
for
envVarAssignment
in
envvars
.
split
(
':'
):
key
,
value
=
envVarAssignment
.
split
(
'='
)
idx
=
envVarAssignment
.
find
(
'='
)
if
idx
==
-
1
:
panic
(
'Unexpected EnvVars value:
\n\t
'
+
envVarAssignment
)
# If you are wondering why we don't just split on '=',
# think of an env var setting like...
#
# FOOBAR="BAR=1 BAZ=2"
key
=
envVarAssignment
[:
idx
]
value
=
envVarAssignment
[
idx
+
1
:]
print
(
key
,
'==>'
,
value
)
platform
=
g_distributionNodesPlatform
[
partitionName
][
0
]
os
.
putenv
(
key
,
value
)
...
...
@@ -2550,6 +2560,7 @@ def main():
AdaIncludePath
=
AdaSpecialHandling
(
AdaIncludePath
,
adaSubsystems
)
ParsePartitionInformation
()
cflagsSoFar
+=
" "
+
os
.
getenv
(
'CFLAGS'
,
default
=
""
)
+
" "
guiSubsystems
,
AdaIncludePath
=
DetectGUIsubSystems
(
AdaIncludePath
)
cyclicSubsystems
=
DetectCyclicSubsystems
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment