-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Commands to get signature from panda * does this make misra happy? * Can I do this in misra? * this works and makes misra happy * Add jenkins test for get signature * Remove comments * Add comment about code size * Fix firmware file path
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
import os | ||
|
||
from nose.tools import assert_equal | ||
|
||
from panda import Panda, BASEDIR | ||
from .helpers import reset_pandas, test_all_pandas, panda_connect_and_init | ||
|
||
|
||
# Reset the pandas before flashing them | ||
def aaaa_reset_before_tests(): | ||
reset_pandas() | ||
|
||
|
||
@test_all_pandas | ||
@panda_connect_and_init | ||
def test_recover(p): | ||
assert p.recover(timeout=30) | ||
|
||
|
||
@test_all_pandas | ||
@panda_connect_and_init | ||
def test_flash(p): | ||
p.flash() | ||
|
||
|
||
@test_all_pandas | ||
@panda_connect_and_init | ||
def test_get_signature(p): | ||
fn = os.path.join(BASEDIR, "board/obj/panda.bin") | ||
|
||
firmware_sig = Panda.get_signature_from_firmware(fn) | ||
panda_sig = p.get_signature() | ||
|
||
assert_equal(panda_sig, firmware_sig) |