Commit 1818e68f authored by Daniel P. Berrangé's avatar Daniel P. Berrangé

scripts: strip quotes from URI before checking it

The config file may have the URI listed with or without quotes, and the
nwfilter tests didn't strip quotes before checking against the
whitelisted URI.
Reviewed-by: 's avatarJán Tomko <jtomko@redhat.com>
Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
parent 62d2b460
...@@ -12,7 +12,7 @@ uri=$(sed -n '/^uri[ ]*=[ ]*/ { ...@@ -12,7 +12,7 @@ uri=$(sed -n '/^uri[ ]*=[ ]*/ {
$ { $ {
x x
p p
}' < "$LIBVIRT_TCK_CONFIG") }' < "$LIBVIRT_TCK_CONFIG" | sed -e 's/"//g')
: "${uri:=qemu:///system}" : "${uri:=qemu:///system}"
LIBVIRT_URI=${uri} LIBVIRT_URI=${uri}
......
...@@ -16,7 +16,7 @@ VIRSH=virsh ...@@ -16,7 +16,7 @@ VIRSH=virsh
$ { $ {
x x
p p
}' < "$LIBVIRT_TCK_CONFIG") }' < "$LIBVIRT_TCK_CONFIG" | sed -e 's/"//g')
: "${uri:=qemu:///system}" : "${uri:=qemu:///system}"
LIBVIRT_URI=${uri} LIBVIRT_URI=${uri}
......
...@@ -12,7 +12,7 @@ uri=$(sed -n '/^uri[ ]*=[ ]*/ { ...@@ -12,7 +12,7 @@ uri=$(sed -n '/^uri[ ]*=[ ]*/ {
$ { $ {
x x
p p
}' < "$LIBVIRT_TCK_CONFIG") }' < "$LIBVIRT_TCK_CONFIG" | sed -e 's/"//g')
: "${uri:=qemu:///system}" : "${uri:=qemu:///system}"
LIBVIRT_URI=${uri} LIBVIRT_URI=${uri}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment