Skip to content

Commit 3a4751d

Browse files
committed
[run_cperf] Adjust sandbox location to match changed assumptions.
1 parent efe1f32 commit 3a4751d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

run_cperf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ def main():
104104

105105
def get_sandbox_profile_flags():
106106
sandbox_flags = []
107-
sscss = "../../../workspace-private/swift-source-compat-suite-sandbox"
107+
if 'WORKSPACE' not in os.environ:
108+
raise RuntimeError("Missing $WORKSPACE when looking for sandbox")
109+
if 'JOB_NAME' not in os.environ:
110+
raise RuntimeError("Missing $JOB_NAME when looking for sandbox")
111+
workspace = os.environ['WORKSPACE']
112+
job_name = os.environ['JOB_NAME']
113+
sscss = os.path.join(workspace, "../../workspace-private",
114+
job_name, "swift-source-compat-suite-sandbox")
108115
if not os.path.exists(sscss):
109116
raise RuntimeError("Missing sandbox dir %s" % sscss)
110117

0 commit comments

Comments
 (0)