From 5cf748e98b87900979c6875abeb34957034c5300 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 17 Sep 2020 14:32:42 -0700 Subject: [PATCH] auto-t: modify copy_to_storage to take optional dir This is to prepare for testing EAD, and in this case we need to copy the 8021x config to /var/lib/ead instead of IWD's config dir. --- autotests/util/iwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py index 67bb6e41..e812a4e4 100755 --- a/autotests/util/iwd.py +++ b/autotests/util/iwd.py @@ -921,12 +921,12 @@ class IWD(AsyncOpAbstract): fo.close() @staticmethod - def copy_to_storage(source): + def copy_to_storage(source, storage_dir=IWD_STORAGE_DIR): import shutil assert not os.path.isabs(source) - shutil.copy(source, IWD_STORAGE_DIR) + shutil.copy(source, storage_dir) @staticmethod def copy_to_hotspot(source):