commit | 69b10c287d6fb303042c348ab61434b3f124bdf8 | [log] [tgz] |
---|---|---|
author | Javi Merino <javi.merino@arm.com> | Tue Sep 22 14:47:06 2015 +0100 |
committer | Javi Merino <javi.merino@arm.com> | Tue Sep 22 14:47:06 2015 +0100 |
tree | 00670b16d59d749c161d10f92ae2a5cc2c44c0ba | |
parent | 6d80c9154844bb4ef6f453b040dd8b7d0175b0e9 [diff] |
tests: don't barf when testing for copyrights in files with less than two lines If you don't get two lines of code after reading the first 2K of the file, you don't have a copyright in the file. copyright_is_valid() was failing for some files because it only read one line, so lines[1] raised IndexError. Catch the exception and make copyright_is_valid() return properly: the file doesn't have a valid copyright.
trappy is a visualization tool to help analyze data generated on a device. It depends on ipython notebook and pandas. First install these dependencies if you don't have them already:
$ apt-get install ipython-notebook python-pandas
Now launch the ipython notebook server:
$ ipython notebook
This should pop up a browser. If it doesn't, open a web browser and go to http://localhost:8888/tree/
In the doc/
folder there's a 00 - Quick start
which describes how to run trappy. Other notebooks in that directory describe other functions of trappy.