Skip to content

Commit

Permalink
use string literal for commands...
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 27, 2024
1 parent bdfa815 commit aae541c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .builder/actions/xcode-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,13 @@
class XCodeTests(Builder.Action):
def run(self, env):
destination = env.shell.getenv("XCODE_DESTINATION")
platform_string = '\'platform='+destination+'\''
commands =[
'sudo',
'xcodebuild',
'-scheme',
'aws-crt-swift-Package',
'test',
'-destination',
platform_string
str('\'platform='+destination+'\'')
]
print(commands)
print(platform_string.strip('\"'))
commands2 =[
'sudo',
'xcodebuild',
'-scheme',
'aws-crt-swift-Package',
'test',
'-destination',
platform_string.strip('\"')
]
print(commands2)
env.shell.exec(commands2, check=True)
env.shell.exec(commands, check=True)

0 comments on commit aae541c

Please sign in to comment.