mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
fixes for integration and unit tests
Move ros logs dir so that .ulg files are not in the same directory (mission_test.py:: get_last_log() fails otherwise)
This commit is contained in:
1 parent
0edd7c93e1
commit
5363aff879
9 files changed
+50
-19
No files matched your search
@@ -60,8 +60,10 @@ def get_last_log():
|
||||
try:
|
||||
log_path = os.environ['PX4_LOG_DIR']
|
||||
except KeyError:
|
||||
log_path = os.path.join(os.environ['HOME'],
|
||||
'.ros/rootfs/fs/microsd/log')
|
||||
try:
|
||||
log_path = os.path.join(os.environ['ROS_HOME'], 'log')
|
||||
except KeyError:
|
||||
log_path = os.path.join(os.environ['HOME'], '.ros/log')
|
||||
last_log_dir = sorted(glob.glob(os.path.join(log_path, '*')))[-1]
|
||||
last_log = sorted(glob.glob(os.path.join(last_log_dir, '*.ulg')))[-1]
|
||||
return last_log
|
||||
|
||||
Reference in new issue
Block a user