From 53fc3f1e7eae0aec1628dc82b796f2a5639a9b5c Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Sat, 9 May 2020 22:17:24 -0700 Subject: [PATCH] Fix hardcoded path in sensor test script (#1481) * Fix hardcoded path to sensor test script * Rename the other place too old-commit-hash: 09d465013c057762fee4c8c4a14a3837b2a9ec5b --- selfdrive/debug/internal/sensor_test_bootloop.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/debug/internal/sensor_test_bootloop.py b/selfdrive/debug/internal/sensor_test_bootloop.py index 3755221d2f..041905544e 100755 --- a/selfdrive/debug/internal/sensor_test_bootloop.py +++ b/selfdrive/debug/internal/sensor_test_bootloop.py @@ -17,7 +17,7 @@ except PermissionError: print("WARNING: failed to make /dev/shm") try: - with open('/tmp/test-results.json', 'r') as infile: + with open('/tmp/sensor-test-results.json', 'r') as infile: data = json.load(infile) except Exception: data = {'sensor-pass': 0, 'sensor-fail': 0} @@ -25,7 +25,7 @@ except Exception: STARTUP_SCRIPT = "/data/data/com.termux/files/continue.sh" try: with open(STARTUP_SCRIPT, 'w') as startup_script: - startup_script.write("#!/usr/bin/bash\n\n/data/openpilot/selfdrive/test/sensor_test_bootloop.py\n") + startup_script.write("#!/usr/bin/bash\n\n/data/openpilot/selfdrive/debug/internal/sensor_test_bootloop.py\n") os.chmod(STARTUP_SCRIPT, stat.S_IRWXU) except Exception: print("Failed to install new startup script -- aborting") @@ -52,7 +52,7 @@ text += "Sensor fail history: " + str(data['sensor-fail']) + "\n" print(text) -with open('/tmp/test-results.json', 'w') as outfile: +with open('/tmp/sensor-test-results.json', 'w') as outfile: json.dump(data, outfile, indent=4) with TextWindow(text) as status: