Skip to content

Commit

Permalink
Results folder uploaded even if step5 (flight_test) failed
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Dec 15, 2023
1 parent a5274a6 commit 0df077c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions systemtests/test_flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,7 @@ def translate_plot_and_check(self, testname:str) -> bool :
plotter = Plotter()
plotter.create_figures(self.test_file, rosbag_csv, output_pdf) #plot the data
return plotter.test_passed()

def test_hello_world(self):
#this is not a fully functionning test at the moment (it supposes the hello_world ideal trajectory is figure8 so of course it a always fail)
self.test_file = "../crazyflie_examples/crazyflie_examples/data/figure8.csv"
# run test
self.record_start_and_clean("hello_world", 40)
#create the plot etc
test_passed = self.translate_plot_and_check("hello_world")
#assert test_passed, "hello_world test failed : deviation larger than epsilon"



def test_figure8(self):
Expand All @@ -156,11 +148,11 @@ def test_figure8(self):
test_passed = self.translate_plot_and_check("figure8")
assert 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 Down

0 comments on commit 0df077c

Please sign in to comment.