diff --git a/src/tools/chip-cert/dacs.py b/src/tools/chip-cert/dacs.py old mode 100644 new mode 100755 index 47a898b723eafc..526e338b5131ec --- a/src/tools/chip-cert/dacs.py +++ b/src/tools/chip-cert/dacs.py @@ -1,4 +1,7 @@ +#!/usr/bin/env python + import argparse +import os import subprocess import sys import typing @@ -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)