lava-tool should use XDG directories
Bug #1206579 reported by
Milo Casagrande
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Tool |
Fix Released
|
Medium
|
Milo Casagrande |
Bug Description
With the new work done in lava-tool, right now we are storing user inputs in a file called ".lavaconfig" in the user's home directory:
we should switch to use XDG directories for this kind of configuration files.
Also, we should rethink how this file is called and where to actually store the various parameters asked: not all of them can be considered configurations.
We should probably use the $XDG_CACHE_HOME directory to store parameters that can change from job/testdef, and $XDG_CONFIG_HOME to store those values that will hardly change (lava server URL, RPC endpoint, user name).
Related branches
lp:~milo/lava-tool/bug1206579
- Antonio Terceiro: Approve
- Linaro Validation Team: Pending requested
-
Diff: 397 lines (+168/-45)6 files modifiedintegration-tests.d/lava-job-new-with-config.sh (+1/-1)
lava/config.py (+47/-3)
lava/helper/command.py (+4/-2)
lava/testdef/tests/test_commands.py (+9/-4)
lava/tests/test_config.py (+105/-34)
setup.py (+2/-1)
Changed in lava-tool: | |
assignee: | nobody → Milo Casagrande (milo) |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in lava-tool: | |
status: | Confirmed → In Progress |
Changed in lava-tool: | |
status: | In Progress → Fix Released |
milestone: | none → 2013.08 |
To post a comment you must log in.