diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 16:04:09 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 16:04:09 -0400 |
commit | a31a9b7ef81f47d6972a2a74fe9c660c4d250d55 (patch) | |
tree | bf83edd8e11690892dae92b5109d49f8e265bcf9 /include/utils.h | |
parent | 0c21db396d0ca18db4326c53fe69137a69e3f4cb (diff) | |
download | stasis-a31a9b7ef81f47d6972a2a74fe9c660c4d250d55.tar.gz |
Add fix_tox_conf function
* If the user calls tox in a test script like so: tox {{ workaround.tox_posargs }}, then a temporary tox configuration will be generated and the appropriate arguments to use it will be injected into tox's command line arguments
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index b03d99e..4d3cd3d 100644 --- a/include/utils.h +++ b/include/utils.h @@ -254,4 +254,13 @@ int isempty_dir(const char *path); * @return 0 on success, -1 on error */ int xml_pretty_print_in_place(const char *filename, const char *pretty_print_prog, const char *pretty_print_args); + +/** + * Applies OMC fixups to a tox ini config + * @param filename path to tox.ini + * @param result path to processed configuration + * @return 0 on success, -1 on error + */ +int fix_tox_conf(const char *filename, char **result); + #endif //OMC_UTILS_H |