summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestOptions/TestOptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Bcfg2/Options/Parser: fix --version option, add testAlexander Sulfrian2014-11-251-0/+7
|
* Options: Fixed non-path database name parsingChris St. Pierre2014-11-101-4/+12
| | | | | | | | | | | | The database name is sometimes a path (SQLite) and sometimes not (MySQL, PostgreSQL). This introduces a new Option type, RepositoryMacroOption, that expands <repository> macros without canonicalizing the path, so SQLite users can use <repository> in their settings but MySQL users' database name settings will not be destroyed by path canonicalization. The unfortunate downside is that SQLite users can't use ~ in their database name.
* Options: fix path canonicalization and file-like objectsChris St. Pierre2014-11-101-0/+14
| | | | | | This fixes canonicalizing PathOption values when the default value of a config file-only option is used. It also fixes PathOptions that get a file-like object instead of a filename string.
* testsuite: unlink temporary filesChris St. Pierre2014-11-101-3/+6
| | | | | This cleans up the temporary config files created by the option parsing unit tests. Courtesy Alexander Sulfrian.
* Options: ensure <repository> macros are always fixed upChris St. Pierre2014-11-101-1/+7
| | | | | | | This fixes several cases in which <repository> macros would not be properly processed: options that are not added to the parser yet when early options are parsed; and config file options whose default value is used.
* testsuite: Added unit tests for new option parsingChris St. Pierre2014-11-101-0/+469