Skip to content
Snippets Groups Projects
Commit 8c9d4b15 authored by Raoul Hidalgo Charman's avatar Raoul Hidalgo Charman
Browse files

_sandboxremote.py: Add os and arch to command uploaded

These are contained within the platform field.
parent 3d4795ee
No related branches found
No related tags found
Loading
......@@ -65,13 +65,20 @@ class SandboxRemote(Sandbox):
EnvironmentVariable(name=k, value=v)
for (k, v) in environment.items()]
config = self._get_config()
platform = remote_execution_pb2.Platform()
platform.properties.extend([remote_execution_pb2.Platform.
Property(name="os", value=config.build_os),
remote_execution_pb2.Platform.
Property(name="arch", value=config.build_arch)])
# Create and send the Command object.
remote_command = remote_execution_pb2.Command(arguments=command,
working_directory=working_directory,
environment_variables=environment_variables,
output_files=[],
output_directories=[self._output_directory],
platform=None)
platform=platform)
context = self._get_context()
cascache = context.artifactcache
# Upload the Command message to the remote CAS server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment