diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-23 16:25:10 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-23 16:46:35 +0100 |
commit | c1cecc3dc5164856f27e08e5d031315785be2c9f (patch) | |
tree | 3e8b82bf0f7f6ccb841e18573c7fb3e64abaa394 /test | |
parent | d11e12264fcbca9af84a954fff773b720e471eb6 (diff) | |
download | lvm2-c1cecc3dc5164856f27e08e5d031315785be2c9f.tar.gz |
aux: lvmdbus checks for JSONDecodeError
Skip lvmdbus testing with too old python.
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/aux.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index c15fd5baa..9412a20af 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -315,6 +315,7 @@ prepare_lvmdbusd() { which python3 >/dev/null || skip "Missing python3" python3 -c "import pyudev, dbus, gi.repository" || skip "Missing python modules" + python3 -c "from json.decoder import JSONDecodeError" || skip "Python json module is missing JSONDecodeError" # Copy the needed file to run on the system bus if it doesn't # already exist |