commit | 485a09238b4c4e73337e4eb0a88ee82955ff891a | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Fri Aug 12 11:44:55 2022 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Aug 23 02:30:16 2022 -0500 |
tree | f7e2e727ff36d28883261306bfb9ad83583ce05f | |
parent | fb612a5183ba7e4982801603062574b8cd9c0fb5 [diff] |
unit-test: cppcheck: use temporary directory The previous code would create a directory named `cppcheck-temp` in the root of the repository under test as the cppcheck cache but never cleaned it up. This left stray directories around when using the unit test locally. Switch the mechanism to use tempfile.TemporaryDirectory so that the directory is automatically cleaned up when the testing is complete. Tested: Ran unit-test locally and observed cppcheck-temp directory no longer remains[1]. 1. https://github.com/williamspatrick/dotfiles/blob/840250f0c56b299a8de47cc2ea7c558a14eeb517/env/30_linux/lfopenbmc.zsh#L76 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idde8feb28bef663d156c5d1d1f21a3d8c629c72d
Build script for CI jobs in Jenkins.