Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2696 from weaveworks/2647-import-using-absolute-p…
Browse files Browse the repository at this point in the history
…aths

Scripts now source dependencies using relative paths
  • Loading branch information
bboreham authored Dec 13, 2016
2 parents 29cb13c + 0dff07d commit 906d9a4
Show file tree
Hide file tree
Showing 68 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion test/090_docker_restart_policy_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Test docker restart policy"

Expand Down
2 changes: 1 addition & 1 deletion test/100_cross_hosts_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.4
C2=10.2.1.7
Expand Down
2 changes: 1 addition & 1 deletion test/105_frag_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.41
C2=10.2.1.71
Expand Down
2 changes: 1 addition & 1 deletion test/110_encryption_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.4
C2=10.2.1.7
Expand Down
2 changes: 1 addition & 1 deletion test/115_optional_encryption_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Optional encryption via trusted subnets"

Expand Down
2 changes: 1 addition & 1 deletion test/120_discovery_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.41
C3=10.2.1.71
Expand Down
2 changes: 1 addition & 1 deletion test/130_expose_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.34
C2=10.2.1.37
Expand Down
2 changes: 1 addition & 1 deletion test/140_weave_local_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

weave_local_on() {
host=$1
Expand Down
2 changes: 1 addition & 1 deletion test/150_connect_forget_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.4
C2=10.2.1.7
Expand Down
2 changes: 1 addition & 1 deletion test/175_target_peer_persistence_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"


assert_targets() {
Expand Down
2 changes: 1 addition & 1 deletion test/190_no_fastdp_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.46
C2=10.2.1.47
Expand Down
2 changes: 1 addition & 1 deletion test/195_no_multicast_route_1_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

show_multicast_route_on() {
exec_on $1 $2 ip route show 224.0.0.0/4
Expand Down
2 changes: 1 addition & 1 deletion test/200_dns_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/205_dns_disabled_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.87

Expand Down
2 changes: 1 addition & 1 deletion test/210_dns_cross_hosts_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.3.78
C2=10.2.3.34
Expand Down
2 changes: 1 addition & 1 deletion test/215_stale_dns_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Check propagation of DNS entries when gossip is delayed"

Expand Down
2 changes: 1 addition & 1 deletion test/220_dns_custom_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.56.34
C2=10.2.54.91
Expand Down
2 changes: 1 addition & 1 deletion test/225_dns_subdomain_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.54.34
C2=10.2.54.91
Expand Down
2 changes: 1 addition & 1 deletion test/230_dns_unqualified_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/240_dns_add_name_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/245_dns_case_insensitive_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.79
Expand Down
2 changes: 1 addition & 1 deletion test/250_dns_negative_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Negative DNS queries"

Expand Down
2 changes: 1 addition & 1 deletion test/255_dns_restart_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/260_dns_removal_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.67
C2=10.2.0.43
Expand Down
2 changes: 1 addition & 1 deletion test/265_dns_reverse_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

IP=10.2.0.67

Expand Down
2 changes: 1 addition & 1 deletion test/270_use_name_as_hostname_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

NAME=c1
DOMAIN=weave.local
Expand Down
2 changes: 1 addition & 1 deletion test/280_with_or_without_dns_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

IP=10.2.0.34
TARGET=seetwo.weave.local
Expand Down
2 changes: 1 addition & 1 deletion test/290_dns_fallback_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Resolve a non-weave address"

Expand Down
2 changes: 1 addition & 1 deletion test/295_dns_large_response_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

NAME=seetwo.weave.local

Expand Down
2 changes: 1 addition & 1 deletion test/300_ip_reuse_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.1.43
C2=10.2.1.44
Expand Down
2 changes: 1 addition & 1 deletion test/310_docker_restart_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Containers get same IP address on restart"

Expand Down
2 changes: 1 addition & 1 deletion test/320_claim_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

UNIVERSE=10.2.0.0/16
C1=10.2.128.1
Expand Down
2 changes: 1 addition & 1 deletion test/330_reset_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Rolling restart with reset"

Expand Down
2 changes: 1 addition & 1 deletion test/335_rmpeer_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "rmpeer reclaims IP addresses of lost peers"

Expand Down
2 changes: 1 addition & 1 deletion test/340_observers_cannot_vote_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Observers can't vote"

Expand Down
2 changes: 1 addition & 1 deletion test/350_observers_can_call_election_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Observers can call election"

Expand Down
2 changes: 1 addition & 1 deletion test/360_ipalloc_seed_mismatch_3_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "IPAM ring seed mismatch"

Expand Down
2 changes: 1 addition & 1 deletion test/362_ipalloc_range_change_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "IPAM alloc range change"

Expand Down
2 changes: 1 addition & 1 deletion test/370_persist_ipam_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Checking persistence of IPAM"

Expand Down
2 changes: 1 addition & 1 deletion test/380_ipam_seed_2_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Specify initial IPAM seed"

Expand Down
2 changes: 1 addition & 1 deletion test/500_weave_multi_cidr_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

NAME=multicidr.weave.local

Expand Down
2 changes: 1 addition & 1 deletion test/510_detach_hide_no_ipalloc_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ check() {
assert_raises "timeout 10 cat <( $CMD )"
}

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "'detach' and 'hide' do not require IP allocation"

Expand Down
2 changes: 1 addition & 1 deletion test/600_proxy_docker_py.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
# Explicitly not called _test.sh - this isn't run, but imported by other tests.

. ./config.sh
. "$(dirname "$0")/config.sh"

IMAGE="joffrey/docker-py:1.8.1"

Expand Down
2 changes: 1 addition & 1 deletion test/605_proxy_inspect_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

start_suite "Check that docker inspect returns the weave IP"

Expand Down
2 changes: 1 addition & 1 deletion test/610_proxy_wait_for_weave_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

entrypoint() {
docker_on $HOST1 inspect --format="{{.Config.Entrypoint}}" "$@"
Expand Down
2 changes: 1 addition & 1 deletion test/615_proxy_rewrite_hosts_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

expected_ip=10.2.1.1

Expand Down
2 changes: 1 addition & 1 deletion test/620_proxy_entrypoint_command_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

build_image() {
docker_on $HOST1 build -t $1 >/dev/null - <<- EOF
Expand Down
2 changes: 1 addition & 1 deletion test/630_proxy_dns_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
2 changes: 1 addition & 1 deletion test/635_proxy_dns_unqualified_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

. ./config.sh
. "$(dirname "$0")/config.sh"

C1=10.2.0.78
C2=10.2.0.34
Expand Down
Loading

0 comments on commit 906d9a4

Please sign in to comment.