Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1986 from okurz/feature/signatures_in_most_of_bac…
…kends_and_consoles Use signatures in most of backend/ and consoles/ as possible
- Loading branch information
Showing
16 changed files
with
74 additions
and
24 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
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 |
---|---|---|
|
@@ -83,6 +83,6 @@ sub disable ($self) { | |
} | ||
|
||
# we have no screen | ||
sub screen { } | ||
sub screen ($self) { } | ||
|
||
1; |
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 |
---|---|---|
|
@@ -87,7 +87,6 @@ sub disable ($self) { | |
return $ret; | ||
} | ||
|
||
# we have no screen | ||
sub screen { } | ||
sub screen ($self) { } | ||
|
||
1; |
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 |
---|---|---|
|
@@ -21,6 +21,6 @@ sub activate ($self) { | |
} | ||
|
||
# to be overwritten | ||
sub connect_remote { } | ||
sub connect_remote ($self, $args) { } | ||
|
||
1; |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/perl | ||
|
||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
use Test::Most; | ||
use Mojo::Base -strict, -signatures; | ||
use Test::Warnings qw(:all :report_warnings); | ||
use FindBin '$Bin'; | ||
use lib "$Bin/../external/os-autoinst-common/lib"; | ||
use OpenQA::Test::TimeLimit '5'; | ||
use consoles::amtSol; | ||
|
||
my $c = consoles::amtSol->new('sut', {}); | ||
is $c->screen, undef, 'can call screen'; | ||
|
||
done_testing; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/perl | ||
|
||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
use Test::Most; | ||
use Mojo::Base -strict, -signatures; | ||
use Test::Warnings qw(:all :report_warnings); | ||
use FindBin '$Bin'; | ||
use lib "$Bin/../external/os-autoinst-common/lib"; | ||
use OpenQA::Test::TimeLimit '5'; | ||
use consoles::network_console; | ||
|
||
my $c = consoles::network_console->new('sut', {}); | ||
is $c->activate, undef, 'can call activate'; | ||
is $c->connect_remote(undef), undef, 'connect_remote can be called, to be overwritten'; | ||
|
||
done_testing; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/perl | ||
|
||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
use Test::Most; | ||
use Mojo::Base -strict, -signatures; | ||
use Test::Warnings qw(:all :report_warnings); | ||
use FindBin '$Bin'; | ||
use lib "$Bin/../external/os-autoinst-common/lib"; | ||
use OpenQA::Test::TimeLimit '5'; | ||
use consoles::sshVirtshSUT; | ||
|
||
my $c = consoles::sshVirtshSUT->new('sut', {}); | ||
is $c->screen, undef, 'no screen defined'; | ||
is $c->is_serial_terminal, 1, 'is a serial terminal'; | ||
|
||
done_testing; |
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