From ef6bef27d5b1e52f5fe10df97ec9ac0c493ef9f8 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 30 Sep 2016 15:03:18 -0700 Subject: [PATCH] auto-t: remove old 0 AP test --- autotests/test0AP/README.txt | 9 ------ autotests/test0AP/hw.conf | 2 -- autotests/test0AP/scanNetworkWithoutAPTest.py | 31 ------------------- 3 files changed, 42 deletions(-) delete mode 100644 autotests/test0AP/README.txt delete mode 100644 autotests/test0AP/hw.conf delete mode 100755 autotests/test0AP/scanNetworkWithoutAPTest.py diff --git a/autotests/test0AP/README.txt b/autotests/test0AP/README.txt deleted file mode 100644 index 5ec8c4cd..00000000 --- a/autotests/test0AP/README.txt +++ /dev/null @@ -1,9 +0,0 @@ -scanNetworkWithoutAPTest: This test checks that we do not find any AP to - connect to, if hostapd is not started. - -Run tests (scanNetworkWithoutAPTest test): -1. Start iwd. - sudo iwd -2. Start scanNetworkWithoutAPTest test (inside autotests/test0AP directory). - cd /autotests/test0AP - ./scanNetworkWithoutAPTest.py diff --git a/autotests/test0AP/hw.conf b/autotests/test0AP/hw.conf deleted file mode 100644 index 3ea77459..00000000 --- a/autotests/test0AP/hw.conf +++ /dev/null @@ -1,2 +0,0 @@ -[SETUP] -num_radios=1 diff --git a/autotests/test0AP/scanNetworkWithoutAPTest.py b/autotests/test0AP/scanNetworkWithoutAPTest.py deleted file mode 100755 index e8f9f7d8..00000000 --- a/autotests/test0AP/scanNetworkWithoutAPTest.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python3 - -#built-in python libraries -import unittest -import dbus -import logging -import sys -sys.path.append('../utility') #needed to import all the utility modules -import utility - -# start this test without hostapd -class TestScanNetworkWithoutAP(unittest.TestCase): - - def test_scanNetworkWithoutAP(self): - logger.info(sys._getframe().f_code.co_name) - # scan and get network name - objectList = utility.getObjectList(bus) - networkName = utility.getNetworkName(objectList) - logger.info("Network Found: %s", networkName) - # should not find any network since hostapd is not running. - self.assertEqual(networkName, "") - - @classmethod - def setUpClass(cls): - global logger, bus - utility.initLogger() - logger = logging.getLogger(__name__) - bus = dbus.SystemBus() - -if __name__ == '__main__': - unittest.main(exit=True)