Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
c58be5e1
Commit
c58be5e1
authored
Jan 16, 2018
by
Francesc Guasch
Browse files
[#513] Fixed test screenshots for Void
parent
71d74264
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain/Void.pm
View file @
c58be5e1
...
@@ -27,8 +27,8 @@ has '_ip' => (
...
@@ -27,8 +27,8 @@ has '_ip' => (
our
$DIR_TMP
=
"
/var/tmp/rvd_void
";
our
$DIR_TMP
=
"
/var/tmp/rvd_void
";
our
$
IMPO
RT
=
`
which
impo
rt
`;
our
$
CONVE
RT
=
`
which
conve
rt
`;
chomp
$
IMPO
RT
;
chomp
$
CONVE
RT
;
#######################################3
#######################################3
sub
BUILD
{
sub
BUILD
{
...
@@ -345,12 +345,12 @@ sub screenshot {
...
@@ -345,12 +345,12 @@ sub screenshot {
my
$self
=
shift
;
my
$self
=
shift
;
my
$file
=
(
shift
or
$self
->
_file_screenshot
);
my
$file
=
(
shift
or
$self
->
_file_screenshot
);
my
@cmd
=
(
$IMPORT
,'
-window
','
root
'
my
@cmd
=
(
$CONVERT
,'
-size
',
'
400x300
',
'
xc:white
'
,'
-resize
','
400x300
'
,
$file
,
$file
);
);
my
(
$in
,
$out
,
$err
);
my
(
$in
,
$out
,
$err
);
run3
(
\
@cmd
,
\
$in
,
\
$out
,
\
$err
);
run3
(
\
@cmd
,
\
$in
,
\
$out
,
\
$err
);
warn
$err
if
$err
;
}
}
sub
_file_screenshot
{
sub
_file_screenshot
{
...
@@ -358,7 +358,7 @@ sub _file_screenshot {
...
@@ -358,7 +358,7 @@ sub _file_screenshot {
return
$DIR_TMP
.
"
/
"
.
$self
->
name
.
"
.png
";
return
$DIR_TMP
.
"
/
"
.
$self
->
name
.
"
.png
";
}
}
sub
can_screenshot
{
return
$
IMPO
RT
;
}
sub
can_screenshot
{
return
$
CONVE
RT
;
}
sub
get_info
{
sub
get_info
{
my
$self
=
shift
;
my
$self
=
shift
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment