From 0df077c2d44438b366c7cc256989ad8fc4d0ce41 Mon Sep 17 00:00:00 2001 From: JulienThevenozIMRC Date: Fri, 15 Dec 2023 15:33:51 +0100 Subject: [PATCH] Results folder uploaded even if step5 (flight_test) failed --- systemtests/test_flights.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/systemtests/test_flights.py b/systemtests/test_flights.py index 50f858f08..cfd84f1c1 100644 --- a/systemtests/test_flights.py +++ b/systemtests/test_flights.py @@ -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): @@ -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"