Skip to content

Commit

Permalink
Fix error copying artifacts. (#9689)
Browse files Browse the repository at this point in the history
This fixes errors like:

```
FileNotFoundError: [Errno 2] No such file or directory:
'/workspaces/connectedhomeip/out/tizen-arm-light/chip-tizen-lighting-example.out'
```

When trying to copy artifacts.

Tested running:

```
./scripts/build/build_examples.py --platform tizen build --copy-artifacts-to /tmp
```
  • Loading branch information
andy31415 authored Sep 14, 2021
1 parent 102c6e2 commit 29e6bcd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions scripts/build/builders/tizen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def ExampleName(self):
else:
raise Exception('Unknown app type: %r' % self)

def AppNamePrefix(self):
def AppName(self):
if self == TizenApp.LIGHT:
return 'chip-tizen-lighting-example'
return 'chip-lighting-app'
else:
raise Exception('Unknown app type: %r' % self)

Expand Down Expand Up @@ -91,12 +91,10 @@ def _build(self):

def build_outputs(self):
items = {
'%s.out' % self.app.AppNamePrefix():
os.path.join(self.output_dir, '%s.out' %
self.app.AppNamePrefix()),
'%s.out.map' % self.app.AppNamePrefix():
os.path.join(self.output_dir,
'%s.out.map' % self.app.AppNamePrefix()),
'%s' % self.app.AppName():
os.path.join(self.output_dir, self.app.AppName()),
'%s.map' % self.app.AppName():
os.path.join(self.output_dir, '%s.map' % self.app.AppName()),
}

return items

0 comments on commit 29e6bcd

Please sign in to comment.