]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Remove bashisms from schema tests.
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 16 Oct 2009 23:16:25 +0000 (01:16 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 16 Oct 2009 23:16:25 +0000 (01:16 +0200)
Introduced in commit 39a7be470cc5477a96a4d53194291bf4c7b07185.

* tests/*schematest: replace 'source' with '.'
* tests/schematestutils.sh: remove 'function' keyword and add '()'

tests/capabilityschematest
tests/domainschematest
tests/interfaceschematest
tests/networkschematest
tests/nodedevschematest
tests/schematestutils.sh
tests/storagepoolschematest
tests/storagevolschematest

index 651e23efe6c2267c221cb867faf61731c6d99d75..3a1acc5aaa0c48b68c5d6e3f601389d8c32ec342 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="capabilityschemadata xencapsdata"
 SCHEMA="capability.rng"
index bd58a304372d435e56b9a4c289332353140ceb9d..28ee69ac1b9b073c28290173c752233b8d003acc 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="domainschemadata qemuxml2argvdata sexpr2xmldata xmconfigdata xml2sexprdata"
 SCHEMA="domain.rng"
index e7bd4e51da1918ccdc7849210bd800cd3cce1b62..e9ec2a47d57f7d504d5a80340403c4f8f2b3c6ea 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="interfaceschemadata"
 SCHEMA="interface.rng"
index 6305576b98c638b309e4cf3fd11697479993a8cf..01b2e6f20d46f6564c002a15d71f36874a423e57 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="../src/network networkxml2xmlin networkxml2xmlout"
 SCHEMA="network.rng"
index e676660c58a51a3b8a186156857fa5a53fa4f574..2f0e2b9a887db6e6170a28c256bede1b3ed355c0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="nodedevschemadata"
 SCHEMA="nodedev.rng"
index 4b5f26658bbb41abf2f5aed91a1bbf1d92c7a125..56e6d83cfc4bcbb1b9b18fa0e6f7513f3334c188 100644 (file)
@@ -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"
index be4767d5e670f3f71a12fd1e5c92eb091d3aeeb7..57b2f7bbde3031bced244b7e33c903de0d558f0c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="storagepoolxml2xmlin storagepoolxml2xmlout"
 SCHEMA="storagepool.rng"
index ffc5c8ae002708291f1b09b48b0e3f5d1cc1923a..32a86578a46d4ae1c8bce3763243e2223093520f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-source ./schematestutils.sh
+. ./schematestutils.sh
 
 DIRS="storagevolxml2xmlin storagevolxml2xmlout"
 SCHEMA="storagevol.rng"