diff --git a/.github/workflows/systemtests_sim.yml b/.github/workflows/systemtests_sim.yml index 8722cc3ff..b02702063 100644 --- a/.github/workflows/systemtests_sim.yml +++ b/.github/workflows/systemtests_sim.yml @@ -21,8 +21,7 @@ jobs: make cf2_defconfig make bindings_python cd build - python3 setup.py install --user - printenv PYTHONPATH || true + python3 setup.py install --user - name: Create workspace id: step2 run: | @@ -55,11 +54,7 @@ jobs: cd ros2_ws source /opt/ros/humble/setup.bash . install/local_setup.bash - ########## export PYTHONPATH="${PYTHONPATH}:/home/github/actions-runner/_work/crazyswarm2/crazyswarm2/crazyflie-firmware/build/" - printenv PYTHONPATH - pip show cffirmware - ########## export ROS_LOCALHOST_ONLY=1 python3 src/crazyswarm2/systemtests/test_flights.py --sim @@ -70,8 +65,6 @@ jobs: with: name: pdf_rosbags_and_logs path: | - #/home/github/.local/lib/python3.10/site-packages/cffirmware.py - #/home/github/.local/lib/python3.10/site-packages/cffirmware-0.1-py3.10.egg ros2_ws/results diff --git a/systemtests/test_flights.py b/systemtests/test_flights.py index 0f9f5326e..c49345d8b 100644 --- a/systemtests/test_flights.py +++ b/systemtests/test_flights.py @@ -170,11 +170,11 @@ def test_figure8(self): test_passed = self.translate_plot_and_check("figure8") test_passed, "figure8 test failed : deviation larger than epsilon" - # def test_multi_trajectory(self): - # self.test_file = "../crazyflie_examples/crazyflie_examples/data/multi_trajectory/traj0.csv" - # self.record_start_and_clean("multi_trajectory", 80) - # test_passed = self.translate_plot_and_check("multi_trajectory") - # assert test_passed, "multitrajectory test failed : deviation larger than epsilon" + def test_multi_trajectory(self): + self.test_file = "../crazyflie_examples/crazyflie_examples/data/multi_trajectory/traj0.csv" + self.record_start_and_clean("multi_trajectory", 80) + test_passed = self.translate_plot_and_check("multi_trajectory") + assert test_passed, "multitrajectory test failed : deviation larger than epsilon" @@ -191,5 +191,3 @@ def test_figure8(self): unittest.main(argv=[sys.argv[0]] + other_args) - # TestFlights.SIM = True - # unittest.main() \ No newline at end of file