[master] b47add8 Use os.path.join().
Lasse Karstensen
lkarsten at varnish-software.com
Thu Feb 11 13:01:09 CET 2016
commit b47add8506b62d208de76661cb236988d0022fa6
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Thu Feb 11 12:56:33 2016 +0100
Use os.path.join().
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 0d55316..e8f890f 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -42,7 +42,7 @@ import optparse
import unittest
import random
from os import unlink
-from os.path import dirname, realpath, exists
+from os.path import dirname, exists, join, realpath
from pprint import pprint, pformat
ctypes = {
@@ -833,10 +833,10 @@ class SimpleTestCase(unittest.TestCase):
from glob import glob
tmpfile = mktemp()
bdir = dirname(realpath(__file__))
- for inputfile in glob(bdir + "/../libvmod_*/vmod.vcc"):
- runmain(inputfile, outputname=tmpfile)
- for suffix in [".c", ".h"]:
- unlink(tmpfile + suffix)
+ for inputfile in glob(join(bdir, "../libvmod_*/vmod.vcc")):
+ runmain(inputfile, outputprefix=tmpfile)
+ unlink(tmpfile + ".c")
+ unlink(tmpfile + ".h")
#######################################################################
More information about the varnish-commit
mailing list