Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 71 forks source link

Fix flaky tests tests/test_iotedgedev_solution.py #564

Open beandrad opened 2 years ago

beandrad commented 2 years ago

The tests that call create_solution() in tests/test_iotedgedev_solution.py fail when the directory where the edge solution needs to be created is not empty. This happens when the files from a previous pipeline run are still there. The directory should be clean up on test setup and teardown.

Exception: ERROR: Directory is not empty. Run `iotedgedev iothub setup` to retrieve or create required Azure resources or clean the directory.

See pipeline run. image

Steps to Reproduce:

  1. Run the corresponding tests in tests/test_iotedgedev_solution.py