gromero edited a comment on pull request #9320:
URL: https://github.com/apache/tvm/pull/9320#issuecomment-946789686


   > @gromero is it possible to replicate the scenario in a test?
   
   @Mousius Yes, below is a repro. So all a test needs to do is  generate a 
project dir based on Arduino default template. I haven't looked closely why 
current tests don't catch it (I tried to run them for Arduino "due" board and 
they pass, afaics they are not flashing anything to the board as we do on 
Zephyr tests...).
   
   ```
   >>> import tvm.micro.project as p
   >>> prj  = 
p.generate_project_from_mlf("/home/gromero/git/tvm/apps/microtvm/arduino/template_project","/tmp/4300","/home/gromero/git/tvm/python/tvm/driver/tvmc/sine.tar",
 { "project_type": "host_driven", "arduino_board": "due", "arduino_cli_cmd": 
"/home/gromero/bin/arduino-cli" } )
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/gromero/git/tvm/python/tvm/micro/project.py", line 199, in 
generate_project_from_mlf
       return template.generate_project_from_mlf(str(mlf_path), 
str(project_dir), options)
     File "/home/gromero/git/tvm/python/tvm/micro/project.py", line 122, in 
generate_project_from_mlf
       return GeneratedProject.from_directory(project_dir, options)
     File "/home/gromero/git/tvm/python/tvm/micro/project.py", line 68, in 
from_directory
       return cls(client.instantiate_from_dir(project_dir), options)
     File "/home/gromero/git/tvm/python/tvm/micro/project.py", line 75, in 
__init__
       raise TemplateProjectError()
   tvm.micro.project.TemplateProjectError
   >>> 
    ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to