mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
autotest: remove disabled LogUpload test
This has been unused for a long time, and is getting in the way of reforms. Its position as a test rather than as a part of a framework was always going to cause oddities, particularly after we split the Copter tests into several chunks.
This commit is contained in:
parent
87e97ca5b2
commit
ba6cf1a42b
@ -8976,7 +8976,6 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.PAUSE_CONTINUE_GUIDED,
|
self.PAUSE_CONTINUE_GUIDED,
|
||||||
self.RichenPower,
|
self.RichenPower,
|
||||||
self.IE24,
|
self.IE24,
|
||||||
self.LogUpload,
|
|
||||||
self.MAVLandedStateTakeoff,
|
self.MAVLandedStateTakeoff,
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
@ -9039,7 +9038,6 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.DefaultIntervalsFromFiles,
|
self.DefaultIntervalsFromFiles,
|
||||||
self.GPSTypes,
|
self.GPSTypes,
|
||||||
self.MultipleGPS,
|
self.MultipleGPS,
|
||||||
self.LogUpload,
|
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
@ -3998,7 +3998,6 @@ class AutoTestPlane(AutoTest):
|
|||||||
self.MSP_DJI,
|
self.MSP_DJI,
|
||||||
self.SpeedToFly,
|
self.SpeedToFly,
|
||||||
self.GlideSlopeThresh,
|
self.GlideSlopeThresh,
|
||||||
self.LogUpload,
|
|
||||||
self.HIGH_LATENCY2,
|
self.HIGH_LATENCY2,
|
||||||
self.MidAirDisarmDisallowed,
|
self.MidAirDisarmDisallowed,
|
||||||
])
|
])
|
||||||
|
@ -413,7 +413,6 @@ class AutoTestSub(AutoTest):
|
|||||||
self.MotorThrustHoverParameterIgnore,
|
self.MotorThrustHoverParameterIgnore,
|
||||||
self.SET_POSITION_TARGET_GLOBAL_INT,
|
self.SET_POSITION_TARGET_GLOBAL_INT,
|
||||||
self.TestLogDownloadMAVProxy,
|
self.TestLogDownloadMAVProxy,
|
||||||
self.LogUpload,
|
|
||||||
])
|
])
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
@ -115,7 +115,6 @@ inherit Rover's tests!'''
|
|||||||
self.GetBanner,
|
self.GetBanner,
|
||||||
self.DO_SET_MODE,
|
self.DO_SET_MODE,
|
||||||
self.ServoRelayEvents,
|
self.ServoRelayEvents,
|
||||||
self.LogUpload,
|
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
@ -3651,24 +3651,6 @@ class AutoTest(ABC):
|
|||||||
self.mavproxy_unload_module(mavproxy, 'log')
|
self.mavproxy_unload_module(mavproxy, 'log')
|
||||||
self.stop_mavproxy(mavproxy)
|
self.stop_mavproxy(mavproxy)
|
||||||
|
|
||||||
def LogUpload(self):
|
|
||||||
'''upload logs to ArduPilot firmware server'''
|
|
||||||
self.progress("Log upload disabled as CI artifacts are good")
|
|
||||||
return
|
|
||||||
if len(self.fail_list) > 0 and os.getenv("AUTOTEST_UPLOAD"):
|
|
||||||
# optionally upload logs to server so we can see travis failure logs
|
|
||||||
import datetime
|
|
||||||
import glob
|
|
||||||
import subprocess
|
|
||||||
logdir = self.buildlogs_dirpath()
|
|
||||||
datedir = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M")
|
|
||||||
flist = glob.glob("logs/*.BIN")
|
|
||||||
for e in ['BIN', 'bin', 'tlog']:
|
|
||||||
flist += glob.glob(os.path.join(logdir, '*.%s' % e))
|
|
||||||
self.progress("Uploading %u logs to https://firmware.ardupilot.org/CI-Logs/%s" % (len(flist), datedir))
|
|
||||||
cmd = ['rsync', '-avz'] + flist + ['cilogs@autotest.ardupilot.org::CI-Logs/%s/' % datedir]
|
|
||||||
subprocess.call(cmd)
|
|
||||||
|
|
||||||
def show_gps_and_sim_positions(self, on_off):
|
def show_gps_and_sim_positions(self, on_off):
|
||||||
"""Allow to display gps and actual position on map."""
|
"""Allow to display gps and actual position on map."""
|
||||||
if on_off is True:
|
if on_off is True:
|
||||||
|
@ -438,7 +438,6 @@ class AutoTestHelicopter(AutoTestCopter):
|
|||||||
self.SplineWaypoint,
|
self.SplineWaypoint,
|
||||||
self.AutoRotation,
|
self.AutoRotation,
|
||||||
self.FlyEachFrame,
|
self.FlyEachFrame,
|
||||||
self.LogUpload,
|
|
||||||
self.AirspeedDrivers,
|
self.AirspeedDrivers,
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
|
@ -946,6 +946,5 @@ class AutoTestQuadPlane(AutoTest):
|
|||||||
self.MidAirDisarmDisallowed,
|
self.MidAirDisarmDisallowed,
|
||||||
self.BootInAUTO,
|
self.BootInAUTO,
|
||||||
self.Ship,
|
self.Ship,
|
||||||
self.LogUpload,
|
|
||||||
])
|
])
|
||||||
return ret
|
return ret
|
||||||
|
@ -6125,7 +6125,6 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
|
|||||||
self.EndMissionBehavior,
|
self.EndMissionBehavior,
|
||||||
self.FlashStorage,
|
self.FlashStorage,
|
||||||
self.FRAMStorage,
|
self.FRAMStorage,
|
||||||
self.LogUpload,
|
|
||||||
self.DepthFinder,
|
self.DepthFinder,
|
||||||
self.ChangeModeByNumber,
|
self.ChangeModeByNumber,
|
||||||
self.EStopAtBoot,
|
self.EStopAtBoot,
|
||||||
|
Loading…
Reference in New Issue
Block a user