[master] babbaa5 Fix glob that found no input files.

Lasse Karstensen lkarsten at varnish-software.com
Wed May 14 10:21:09 CEST 2014


commit babbaa5318027849e423ed4ed2d9f62fcc0bd8fd
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Wed May 14 10:19:34 2014 +0200

    Fix glob that found no input files.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 4cc13e1..6e875bf 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -731,8 +731,9 @@ class SimpleTestCase(unittest.TestCase):
 		from tempfile import mktemp
 		from glob import glob
 		tmpfile = mktemp()
-		for inputfile in glob(dirname(realpath(__file__)) + "../libvmod_*/vmod.vcc"):
-			runmain(inputvcc, outputname=tmpfile)
+		bdir = dirname(realpath(__file__))
+		for inputfile in glob(bdir + "/../libvmod_*/vmod.vcc"):
+			runmain(inputfile, outputname=tmpfile)
 			for suffix in [".c", ".h"]:
 				unlink(tmpfile + suffix)
 



More information about the varnish-commit mailing list