commit 2d45461dfdaa2b04b5d8a26e70abf0469262a259
parent efe53e28c8f4dc35bc50a17c942f483acf0f0b81
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 4 Nov 2020 08:48:09 -0800
auto-t: simplify copy_to_hotspot
Since copy_to_storage can take an arbitrary destination path now
we can reuse that instead of duplicating code.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
@@ -1055,14 +1055,10 @@ class IWD(AsyncOpAbstract):
@staticmethod
def copy_to_hotspot(source):
- import shutil
-
- assert not os.path.isabs(source)
-
if not os.path.exists(IWD_STORAGE_DIR + "/hotspot"):
os.mkdir(IWD_STORAGE_DIR + "/hotspot")
- shutil.copy(source, IWD_STORAGE_DIR + "/hotspot")
+ IWD.copy_to_storage(source, IWD_STORAGE_DIR + "/hotspot")
@staticmethod
def copy_to_ap(source):