Skip to content

Commit

Permalink
yeah I think it works
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Jan 26, 2024
1 parent bacf91d commit 35b391f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/systemtests_sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 5 additions & 7 deletions systemtests/test_flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"



Expand All @@ -191,5 +191,3 @@ def test_figure8(self):
unittest.main(argv=[sys.argv[0]] + other_args)


# TestFlights.SIM = True
# unittest.main()

0 comments on commit 35b391f

Please sign in to comment.