Commit b47add85 authored by Lasse Karstensen's avatar Lasse Karstensen

Use os.path.join().

parent f8dfdb46
......@@ -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")
#######################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment