From 4f4a1deccbd1f97bd715ffc12e9cb89394a1098e Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Sat, 17 Oct 2009 01:16:25 +0200 Subject: [PATCH] Remove bashisms from schema tests. Introduced in commit 39a7be470cc5477a96a4d53194291bf4c7b07185. * tests/*schematest: replace 'source' with '.' * tests/schematestutils.sh: remove 'function' keyword and add '()' --- tests/capabilityschematest | 2 +- tests/domainschematest | 2 +- tests/interfaceschematest | 2 +- tests/networkschematest | 2 +- tests/nodedevschematest | 2 +- tests/schematestutils.sh | 2 +- tests/storagepoolschematest | 2 +- tests/storagevolschematest | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/capabilityschematest b/tests/capabilityschematest index 651e23efe6..3a1acc5aaa 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 bd58a30437..28ee69ac1b 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 e7bd4e51da..e9ec2a47d5 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 6305576b98..01b2e6f20d 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 e676660c58..2f0e2b9a88 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 4b5f26658b..56e6d83cfc 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 be4767d5e6..57b2f7bbde 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 ffc5c8ae00..32a86578a4 100755 --- a/tests/storagevolschematest +++ b/tests/storagevolschematest @@ -1,6 +1,6 @@ #!/bin/sh -source ./schematestutils.sh +. ./schematestutils.sh DIRS="storagevolxml2xmlin storagevolxml2xmlout" SCHEMA="storagevol.rng" -- GitLab