From faec9b37e180a9474a8ad8c75dd0044de3179167 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 21 Jun 2021 21:25:04 +0200 Subject: smoketest: ensure /config is a directory (cherry picked from commit 3ae265b300544b855b1b32862c901045ee146934) --- smoketest/scripts/system/test_config_mount.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 smoketest/scripts/system/test_config_mount.py 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 . + +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) + -- cgit v1.2.3