Merge branch 'master' into dev
conn.py: SerialConn Improved Parameter Parsing

There was a problem with reading harness files that all the parameters are
strings. It was not possible to represent numbers as such (at least no simple
way without changing the grammar etc) or the tuple required for
conn.SerialConnection's login credentials.

The chosen solution is to accept all parameters as strings and transform them
in the conn.SerialConnection's constructor, as well as accepting "user" and
"password" parameters that will be transformed to the credentials form in the
constructor.

Additionally the Exceptionhandling was improved in cases were an incorrect
logger was used and for the use case of being not connected physically to the
serial ports, and the use case in which the executing user does not have the
privileges required by the system.

See GitHub Issue #79.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
conn.py: Remove "USB" from Exception String

See GitHub Issue #79.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
Merge branch 'b-serial-params' into dev

Resolves GitHub Issue #79.
conn.py: minimize big if to can_login() method

Improves readability.

See GitHub Issue #74.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
conn.py: check if logged in before _login() call

There is a problem when you are already logged in and in state Connected.
Because Connected can be logged in or not it simply always called the private
_login() method. But the private _login() method expected to only be called
when there is really a login requried thereby expecting the corresponding
prompts.

The decision was made to check if login is necessary before calling the private
_login() method, because the private _login() methods can be written by users
who write individual connection classes. Therefore it is meaningful not to
require them to check if a login is necessary in their own code.

See GitHub Issue #74.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
conn.py: method docs for can_login()

See GitHub Issue #74.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
Merge branch 'b-serial-login' into dev

Resolves GitHub Issue #74.
conn.py: allow any params in Test Conn's _cmd

The _cmd() methods got additional arguments that could not be parsed by the
test connection classes. Therefore the test connection classes got
*args,**kwargs added, so that they can also handle additional parameters that
might be added in the future.

See GitHub Issue #80.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
Merge branch 'b-cmd-returncode' into dev

Resolves GitHub Issue #80.
conn.py: remove password from log message

See GitHub Issue #81.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
Merge branch 'b-log-nopw' into dev

Resolves GitHub Issue #81.
rename harness.py to fixture.py

which is the correct term.

See GitHub Issue #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
fixture.py: rename harness references

See GitHub Issues #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
rename test_harness.py to test_fixture.py

See GitHub Issue #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
test_fixture.py: rename references to fixture

See GitHub Issue #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
rename test data files

See GitHub Issue #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
conn.py: make sure to not login without credentials

The tests failed because a login was attempted although there were no
credentials. I guess there were empty credentials because of my changes to the
credentials setting in the SerialConneciton constructor.

See GitHub Issue #84.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>
Merge branch 'b-fixture' into dev

Fixes GitHub Issue #84.
started intro with code example; todo cfg file

See GitHub Issue #83.

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Stammtisch <project-monk@dresearch-fe.de>