diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-21 21:25:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-21 21:26:53 +0200 |
commit | faec9b37e180a9474a8ad8c75dd0044de3179167 (patch) | |
tree | 69a34bfb36d18ffae070309017d8d8a3bc28225b /smoketest/scripts/system/test_config_mount.py | |
parent | 106e174df83b4c60f7eace5c36eb32bcc5368830 (diff) | |
download | vyos-1x-faec9b37e180a9474a8ad8c75dd0044de3179167.tar.gz vyos-1x-faec9b37e180a9474a8ad8c75dd0044de3179167.zip |
smoketest: ensure /config is a directory
(cherry picked from commit 3ae265b300544b855b1b32862c901045ee146934)
Diffstat (limited to 'smoketest/scripts/system/test_config_mount.py')
-rwxr-xr-x | smoketest/scripts/system/test_config_mount.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_config_mount.py b/smoketest/scripts/system/test_config_mount.py new file mode 100755 index 000000000..657158c39 --- /dev/null +++ b/smoketest/scripts/system/test_config_mount.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +# +# Copyright (C) 2021 VyOS maintainers and contributors +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 or later as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +import os +import unittest + +class TestConfigDir(unittest.TestCase): + def test_config_dir(self): + self.assertTrue(os.path.isdir('/config')) + +if __name__ == '__main__': + unittest.main(verbosity=2) + |