diff options
author | Ben Pfaff <blp@nicira.com> | 2012-03-12 09:48:51 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-03-12 09:48:51 -0700 |
commit | bb474bb3b7bbf4c3fa3f1ca7deeffb3667b9c06f (patch) | |
tree | 0618afb28cfbc4b3ec36e1b26be57b2325e24ae1 /tests | |
parent | d3e565cee955b1f52f3adf69907774f4bd7fc802 (diff) |
tests: Fix "make check" as non-root.
Without this change, these tests try to write to /var/run, which fails
unless "make check" is run as root.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovs-monitor-ipsec.at | 1 | ||||
-rw-r--r-- | tests/ovs-xapi-sync.at | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ovs-monitor-ipsec.at b/tests/ovs-monitor-ipsec.at index ab14462c..c8de1dec 100644 --- a/tests/ovs-monitor-ipsec.at +++ b/tests/ovs-monitor-ipsec.at @@ -3,6 +3,7 @@ AT_BANNER([ovs-monitor-ipsec]) AT_SETUP([ovs-monitor-ipsec]) AT_SKIP_IF([test $HAVE_PYTHON = no]) +OVS_RUNDIR=`pwd`; export OVS_RUNDIR OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR cp "$top_srcdir/vswitchd/vswitch.ovsschema" . diff --git a/tests/ovs-xapi-sync.at b/tests/ovs-xapi-sync.at index 1f0f766c..d1c091a3 100644 --- a/tests/ovs-xapi-sync.at +++ b/tests/ovs-xapi-sync.at @@ -8,6 +8,7 @@ cp "$top_srcdir/tests/MockXenAPI.py" XenAPI.py PYTHONPATH=`pwd`:$PYTHONPATH export PYTHONPATH +OVS_RUNDIR=`pwd`; export OVS_RUNDIR OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR cp "$top_srcdir/vswitchd/vswitch.ovsschema" . |