Better to keep the test harness independent when the relevant code is
this simple.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
from pipes import quote
from subprocess import PIPE, Popen, check_call
from traceback import extract_stack
from pipes import quote
from subprocess import PIPE, Popen, check_call
from traceback import extract_stack
-import subprocess, sys, tempfile
+import errno, os, subprocess, sys, tempfile
from wvtest import WVPASSEQ, wvfailure_count
from wvtest import WVPASSEQ, wvfailure_count
# Assumes (of course) this file is at the top-level of the source tree
_bup_tmp = realpath(dirname(__file__) + '/t/tmp')
# Assumes (of course) this file is at the top-level of the source tree
_bup_tmp = realpath(dirname(__file__) + '/t/tmp')
-helpers.mkdirp(_bup_tmp)
+try:
+ os.makedirs(_bup_tmp)
+except OSError as e:
+ if e.errno != errno.EEXIST:
+ raise