aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Bolte <matthias.bolte@googlemail.com>2009-10-17 01:16:25 +0200
committerMatthias Bolte <matthias.bolte@googlemail.com>2009-10-17 01:16:25 +0200
commit4f4a1deccbd1f97bd715ffc12e9cb89394a1098e (patch)
treed156123368f55d5f9f8c632b512b3d7eae7a60f3
parenttests: Add storage volume XML 2 XML tests. (diff)
downloadlibvirt-4f4a1deccbd1f97bd715ffc12e9cb89394a1098e.tar.gz
libvirt-4f4a1deccbd1f97bd715ffc12e9cb89394a1098e.tar.bz2
libvirt-4f4a1deccbd1f97bd715ffc12e9cb89394a1098e.zip
Remove bashisms from schema tests.
Introduced in commit 39a7be470cc5477a96a4d53194291bf4c7b07185. * tests/*schematest: replace 'source' with '.' * tests/schematestutils.sh: remove 'function' keyword and add '()'
-rwxr-xr-xtests/capabilityschematest2
-rwxr-xr-xtests/domainschematest2
-rwxr-xr-xtests/interfaceschematest2
-rwxr-xr-xtests/networkschematest2
-rwxr-xr-xtests/nodedevschematest2
-rw-r--r--tests/schematestutils.sh2
-rwxr-xr-xtests/storagepoolschematest2
-rwxr-xr-xtests/storagevolschematest2
8 files changed, 8 insertions, 8 deletions
diff --git a/tests/capabilityschematest b/tests/capabilityschematest
index 651e23efe..3a1acc5aa 100755
--- a/tests/capabilityschematest
+++ b/tests/capabilityschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="capabilityschemadata xencapsdata"
SCHEMA="capability.rng"
diff --git a/tests/domainschematest b/tests/domainschematest
index bd58a3043..28ee69ac1 100755
--- a/tests/domainschematest
+++ b/tests/domainschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="domainschemadata qemuxml2argvdata sexpr2xmldata xmconfigdata xml2sexprdata"
SCHEMA="domain.rng"
diff --git a/tests/interfaceschematest b/tests/interfaceschematest
index e7bd4e51d..e9ec2a47d 100755
--- a/tests/interfaceschematest
+++ b/tests/interfaceschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="interfaceschemadata"
SCHEMA="interface.rng"
diff --git a/tests/networkschematest b/tests/networkschematest
index 6305576b9..01b2e6f20 100755
--- a/tests/networkschematest
+++ b/tests/networkschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="../src/network networkxml2xmlin networkxml2xmlout"
SCHEMA="network.rng"
diff --git a/tests/nodedevschematest b/tests/nodedevschematest
index e676660c5..2f0e2b9a8 100755
--- a/tests/nodedevschematest
+++ b/tests/nodedevschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="nodedevschemadata"
SCHEMA="nodedev.rng"
diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh
index 4b5f26658..56e6d83cf 100644
--- a/tests/schematestutils.sh
+++ b/tests/schematestutils.sh
@@ -3,7 +3,7 @@
test -z "$srcdir" && srcdir=`pwd`
test -z "$abs_srcdir" && abs_srcdir=`pwd`
-function check_schema {
+check_schema () {
DIRS=$1
SCHEMA="$srcdir/../docs/schemas/$2"
diff --git a/tests/storagepoolschematest b/tests/storagepoolschematest
index be4767d5e..57b2f7bbd 100755
--- a/tests/storagepoolschematest
+++ b/tests/storagepoolschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="storagepoolxml2xmlin storagepoolxml2xmlout"
SCHEMA="storagepool.rng"
diff --git a/tests/storagevolschematest b/tests/storagevolschematest
index ffc5c8ae0..32a86578a 100755
--- a/tests/storagevolschematest
+++ b/tests/storagevolschematest
@@ -1,6 +1,6 @@
#!/bin/sh
-source ./schematestutils.sh
+. ./schematestutils.sh
DIRS="storagevolxml2xmlin storagevolxml2xmlout"
SCHEMA="storagevol.rng"