]> git.ipfire.org Git - nitsi.git/log
nitsi.git
5 years agoSupport copying of files into all machines
Jonatan Schlag [Tue, 24 Apr 2018 07:25:45 +0000 (09:25 +0200)] 
Support copying of files into all machines

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoSupport comma seperated list of machines
Jonatan Schlag [Mon, 23 Apr 2018 13:21:16 +0000 (15:21 +0200)] 
Support comma seperated list of machines

We now support something like:
alice,bob: echo

Be carefull:
alice, bob:
will break our parsing

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd support for the all: statement
Jonatan Schlag [Mon, 23 Apr 2018 13:04:42 +0000 (15:04 +0200)] 
Add support for the all: statement

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAlways try to clean up all virtual machines and networks
Jonatan Schlag [Mon, 23 Apr 2018 11:40:04 +0000 (13:40 +0200)] 
Always try to clean up all virtual machines and networks

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoCode cleanup in recipe parse
Jonatan Schlag [Mon, 23 Apr 2018 11:38:01 +0000 (13:38 +0200)] 
Code cleanup in recipe parse

I cleaned up the code to avoid multiple identical code statements and to
improve readability.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd basic support for the include statement
Jonatan Schlag [Mon, 23 Apr 2018 11:28:00 +0000 (13:28 +0200)] 
Add basic support for the include statement

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoCorrectly handle exit codes
Jonatan Schlag [Sat, 21 Apr 2018 11:24:32 +0000 (13:24 +0200)] 
Correctly handle exit codes

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoReturn exit code of executed commands
Jonatan Schlag [Sat, 21 Apr 2018 11:23:47 +0000 (13:23 +0200)] 
Return exit code of executed commands

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agologin: also check lines for login, which do not start with a l
Jonatan Schlag [Sat, 21 Apr 2018 11:18:51 +0000 (13:18 +0200)] 
login: also check lines for login, which do not start with a l

When we get 'alice login:' the lines do not start with an 'l' so we can
not assume that all lines which start not with an 'l' are not our login
line.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoOn login print all lines without doing further processing
Jonatan Schlag [Sat, 21 Apr 2018 11:16:15 +0000 (13:16 +0200)] 
On login print all lines without doing further processing

We increase the speed by 5 when we print all lines which are terminated
by \n when we get the full boot log. The line we a re logging for is not
terminated by \n

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd new function line_in_buffer
Jonatan Schlag [Sat, 21 Apr 2018 11:01:07 +0000 (13:01 +0200)] 
Add new function line_in_buffer

This functions check if we can read line out of our buffer.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdapt the test to our current functionality
Jonatan Schlag [Thu, 19 Apr 2018 11:17:12 +0000 (13:17 +0200)] 
Adapt the test to our current functionality

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd a working virtual environment config
Jonatan Schlag [Thu, 19 Apr 2018 11:16:37 +0000 (13:16 +0200)] 
Add a working virtual environment config

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoCall all functions in __main__
Jonatan Schlag [Thu, 19 Apr 2018 11:15:55 +0000 (13:15 +0200)] 
Call all functions in __main__

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd more stuff to the virtual_environ() class
Jonatan Schlag [Thu, 19 Apr 2018 11:14:34 +0000 (13:14 +0200)] 
Add more stuff to the virtual_environ() class

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd all stuff to the test class
Jonatan Schlag [Thu, 19 Apr 2018 11:13:07 +0000 (13:13 +0200)] 
Add all stuff to the test class

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd the login credentials to the vm() class
Jonatan Schlag [Thu, 19 Apr 2018 11:10:36 +0000 (13:10 +0200)] 
Add the login credentials to the vm() class

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoRemove unecessary inspect
Jonatan Schlag [Thu, 19 Apr 2018 11:06:49 +0000 (13:06 +0200)] 
Remove unecessary inspect

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd recipe parsing functionality
Jonatan Schlag [Thu, 19 Apr 2018 11:04:43 +0000 (13:04 +0200)] 
Add recipe parsing functionality

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoAdd network class
Jonatan Schlag [Thu, 19 Apr 2018 11:03:28 +0000 (13:03 +0200)] 
Add network class

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoFix deleting the snapshot of our machines
Jonatan Schlag [Thu, 19 Apr 2018 11:01:09 +0000 (13:01 +0200)] 
Fix deleting the snapshot of our machines

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoFix logging if we do not have an image file
Jonatan Schlag [Thu, 19 Apr 2018 11:00:19 +0000 (13:00 +0200)] 
Fix logging if we do not have an image file

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoRemove a lot of unused code and testing code
Jonatan Schlag [Fri, 13 Apr 2018 15:52:20 +0000 (17:52 +0200)] 
Remove a lot of unused code and testing code

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoRemove duplicated file
Jonatan Schlag [Fri, 13 Apr 2018 15:48:24 +0000 (17:48 +0200)] 
Remove duplicated file

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
6 years agoInitial checkin
Jonatan Schlag [Fri, 13 Apr 2018 15:47:14 +0000 (17:47 +0200)] 
Initial checkin

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>