From ccbe7f6e53eb243b5c869d4f927b93b47e5cb8cd Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 23 Jan 2018 20:56:31 -0500 Subject: tests: Fix attempted use of /run in a test case. The previous commit added a test that would attempt to create and use /run/cloud-init/. This just modifies it to use a temp dir instead. --- tests/unittests/test_datasource/test_gce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unittests/test_datasource/test_gce.py') diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py index 12d68009..f77c2c40 100644 --- a/tests/unittests/test_datasource/test_gce.py +++ b/tests/unittests/test_datasource/test_gce.py @@ -194,7 +194,7 @@ class TestDataSourceGCE(test_helpers.HttprettyTestCase): mock_ug_util.extract_default.return_value = 'ubuntu', None ubuntu_ds = DataSourceGCE.DataSourceGCE( settings.CFG_BUILTIN, self._make_distro('ubuntu'), - helpers.Paths({})) + helpers.Paths({'run_dir': self.tmp_dir()})) valid_key = 'ssh-rsa VALID {0}' invalid_key = 'ssh-rsa INVALID {0}' -- cgit v1.2.3