summaryrefslogtreecommitdiff
path: root/tests/unittests/test_distros
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-01-19 17:31:34 -0500
committerScott Moser <smoser@brickies.net>2017-01-24 16:32:30 -0500
commit65e01b463cee0bdb8c8b415e78abfcc3262aad89 (patch)
treedc0b0a5c0cfddda0723e62a214469ab5d8eb42eb /tests/unittests/test_distros
parent8e9e47f2f06b4dcf017149699111e94ba7c1830b (diff)
downloadvyos-cloud-init-65e01b463cee0bdb8c8b415e78abfcc3262aad89.tar.gz
vyos-cloud-init-65e01b463cee0bdb8c8b415e78abfcc3262aad89.zip
tests: remove executable bit on test_net, so it runs, and fix it.
The test_user_data_normalize and test_net files had gotten the executable bit set, and thus are skipped by nose by default. We could set run with the --exe flag, but they should not have gotten this way. Other changes here: * replace TempDirTestCase with CiTestCase, which has some nice tmp_dir() and tmp_path() functions. Going forward the intent is to have CiTestCase be the base test case for tests. * test_net: switch to CiTestCase and fix usage that was silently broken, because of exe bit. * populate_dir: return the list of files that it writes rather than having no return value. * CiTestCase: * support tmp_path("foo") that returns a full path to 'foo' under a tmpdir. * add tmp_dir() to get a temp dir and clean up.
Diffstat (limited to 'tests/unittests/test_distros')
-rw-r--r--[-rwxr-xr-x]tests/unittests/test_distros/test_user_data_normalize.py0
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/unittests/test_distros/test_user_data_normalize.py b/tests/unittests/test_distros/test_user_data_normalize.py
index 88746e0a..88746e0a 100755..100644
--- a/tests/unittests/test_distros/test_user_data_normalize.py
+++ b/tests/unittests/test_distros/test_user_data_normalize.py