[Asterisk-code-review] run-local: Avoid infinite loop with astcachedir at /tmp (testsuite[16])

Friendly Automation asteriskteam at digium.com
Wed Dec 16 07:53:15 CST 2020


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/testsuite/+/15221 )

Change subject: run-local: Avoid infinite loop with astcachedir at /tmp
......................................................................

run-local: Avoid infinite loop with astcachedir at /tmp

If astcachedir is /tmp, the test setup code will try to mirror an
infinitely deep directory structure. This is more a workaround than a
'fix.'

Does not affect master.

Change-Id: Idd943169d69521a8d3afa746163f4d90d3c8fdbc
---
M run-local
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



diff --git a/run-local b/run-local
index 326ac50..3a984b1 100755
--- a/run-local
+++ b/run-local
@@ -36,7 +36,7 @@
 			menuselect/menuselect --enable DONT_OPTIMIZE --enable TEST_FRAMEWORK $MENUSELECT_OPTIONS
 		fi
 		make
-		make install samples DESTDIR="$HERE/astroot"
+		make install samples DESTDIR="$HERE/astroot" ASTCACHEDIR="/var/cache/asterisk"
 	)
 	if [ -x tests/custom/custom-setup ]; then
 		./tests/custom/custom-setup

-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/15221
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 16
Gerrit-Change-Id: Idd943169d69521a8d3afa746163f4d90d3c8fdbc
Gerrit-Change-Number: 15221
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20201216/d37b8a4b/attachment.html>


More information about the asterisk-code-review mailing list