[PR #11645/a09e879f backport][stable-12] xfconf: fix boolean return values (#11650)

xfconf: fix boolean return values (#11645)

* xfconf: fix boolean return values

* add changelog frag

(cherry picked from commit a09e879ff2)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2026-03-22 20:33:31 +01:00
committed by GitHub
parent 268b31b53d
commit 12808f67d5
3 changed files with 43 additions and 4 deletions

View File

@@ -78,6 +78,36 @@ test_cases:
rc: 0
out: ''
err: ''
- id: test_property_set_property_bool_same_value
input:
channel: xfce4-session
property: /general/SaveOnExit
state: present
value_type: bool
value: false
output:
changed: false
previous_value: 'false'
type: bool
value: 'false'
version: 4.18.1
mocks:
run_command:
- command: [/testbin/xfconf-query, --version]
environ: *env-def
rc: 0
out: *version-output
err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit]
environ: *env-def
rc: 0
out: "false\n"
err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit, --create, --type, bool, --set, 'false']
environ: *env-def
rc: 0
out: ''
err: ''
- id: test_property_set_property_bool_false
input:
channel: xfce4-session
@@ -89,7 +119,7 @@ test_cases:
changed: true
previous_value: 'true'
type: bool
value: 'False'
value: 'false'
version: 4.18.1
mocks:
run_command: