Use prefix to cd (#911)

This commit is contained in:
Abraham Gonzalez 2022-01-20 18:47:53 -08:00 committed by GitHub
parent 0ed1e42df8
commit e0306c081d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -384,7 +384,9 @@ class InstanceDeployManager:
def get_and_install_aws_fpga_sdk(self):
""" Installs the aws-sdk. This gets us access to tools to flash the fpga. """
with cd("../"):
with prefix('cd ../'), \
StreamLogger('stdout'), \
StreamLogger('stderr'):
# use local version of aws_fpga on runfarm nodes
aws_fpga_upstream_version = local('git -C platforms/f1/aws-fpga describe --tags --always --dirty', capture=True)
if "-dirty" in aws_fpga_upstream_version: