From 9780ec845f6f27ba6828322096cd2a9a2cb8478c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 24 May 2015 07:49:01 +0200 Subject: [PATCH] still having problems with GiveRestriction --- s/runtests | 2 ++ scripts/tests/pool.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/s/runtests b/s/runtests index ef7fc71df..3f3b61548 100755 --- a/s/runtests +++ b/s/runtests @@ -1,4 +1,6 @@ #!/bin/bash +set -e + ROOT=$(pwd) while [ ! -d $ROOT/.git ]; do ROOT=$(dirname $ROOT) diff --git a/scripts/tests/pool.lua b/scripts/tests/pool.lua index 2ac9c87f2..3ee3d54db 100644 --- a/scripts/tests/pool.lua +++ b/scripts/tests/pool.lua @@ -61,6 +61,7 @@ end function test_give_divisor() eressea.settings.set("rules.items.give_divisor", 2) + eressea.settings.set("GiveRestriction", 0) local r = region.create(1, 1, "plain") local f1 = faction.create("test@example.com", "human", "de") local f2 = faction.create("test@example.com", "human", "de")