Skip to content

Commit

Permalink
Make DACS script executable and add error if expected tool file not f…
Browse files Browse the repository at this point in the history
…ound (#15148)
  • Loading branch information
andy31415 authored and pull[bot] committed Aug 16, 2023
1 parent 2317fef commit 3048253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tools/chip-cert/dacs.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python

import argparse
import os
import subprocess
import sys
import typing
Expand Down Expand Up @@ -113,6 +116,9 @@ def __init__(self, cert_type: CertType, dev_dir: str, test_dir: str, chip_cert_d
self.cert_type = cert_type
self.chipcert = chip_cert_dir + 'chip-cert'

if not os.path.exists(self.chipcert):
raise Exception('Path not found: %s' % self.chipcert)

paa = Names(CertType.PAA, test_dir, dev_dir, pid)
pai = Names(CertType.PAI, test_dir, dev_dir, pid)
dac = Names(CertType.DAC, test_dir, dev_dir, pid)
Expand Down

0 comments on commit 3048253

Please sign in to comment.