[WIFI-10536] Fix: use tip_2x instead of the template for the setup

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-09-07 11:56:38 +03:00
parent 4c9772775b
commit aa792011da
3 changed files with 2 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ COPY requirements.txt /wlan-testing/requirements.txt
RUN pip3 install -r /wlan-testing/requirements.txt
COPY tests /wlan-testing/tests
COPY libs /wlan-testing/libs
COPY dut_lib_template /wlan-testing/dut_lib_template
COPY setup_env.bash /wlan-testing/setup_env.bash
ENV PYTHON=/usr/local/bin/python3
ENV PIP=/usr/local/bin/pip3

View File

@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name='dut_lib_template',
version='0.1',
scripts=['dut_lib_template.py', 'ap_lib.py', 'SetupLibrary.py', 'openwrt_ctl.py'],
scripts=['dut_lib_template.py', 'controller.py', 'ap_lib.py', 'SetupLibrary.py', 'openwrt_ctl.py'],
author="Shivam Thakur",
author_email="shivam.thakur@candelatech.com",
description="TIP OpenWIFI 2.X Library",

View File

@@ -98,7 +98,7 @@ then
cd libs/tip_2x
$PYTHON setup.py bdist_wheel
$PIP install dist/*.whl --force-reinstall
cd ../
cd ../../
fi
x=$(whoami)
echo -e "\"\"\"\nRegistered Target Imports\n\"\"\"\nimport sys\nimport importlib\n\nsys.path.append('/usr/local/bin')\n\nsys.path.append('/home/$x/.local//bin/')\n\nsys.path.append('/home/$x/.local/lib/python3.8/site-packages/')\n\n" >> tests/imports.py