mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +00:00
printing: always use ls to find PDF, update needles
When the printing_builtin test ran on an F35 respin compose it failed; it turns out the target filename was different for the built-in print-to-PDF on GNOME on F35. So let's just always use the 'ls' output to find the file, but pick the directory to check based on whether we're using cups or not. Also rename the needles to have unique names, and add one for F35 GNOME. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
b26fa834ef
commit
5c011ab567
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"ypos": 274,
|
||||||
|
"xpos": 206,
|
||||||
|
"height": 20,
|
||||||
|
"type": "match",
|
||||||
|
"width": 107
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"printing_use_saveas_pdf"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/printing_use_saveas_pdf-gnome-f35-20220217.png
Normal file
BIN
needles/gnome/printing_use_saveas_pdf-gnome-f35-20220217.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 433 KiB After Width: | Height: | Size: 433 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
@ -95,13 +95,9 @@ sub run {
|
|||||||
|
|
||||||
# Get the name of the printed file. The path location depends
|
# Get the name of the printed file. The path location depends
|
||||||
# on the selected method.
|
# on the selected method.
|
||||||
# For the built-in printing method.
|
my $directory = $usecups ? "/home/test/Desktop" : "/home/test/Documents";
|
||||||
my $filepath = "/home/test/Documents/output.pdf";
|
my $filename = script_output("ls $directory");
|
||||||
# If we use cups-pdf, the file will be placed elsewhere.
|
my $filepath = "$directory/$filename";
|
||||||
if ($usecups) {
|
|
||||||
my $filename = script_output("ls /home/test/Desktop/");
|
|
||||||
$filepath = "/home/test/Desktop/$filename";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Echo that filename to the terminal for troubleshooting purposes
|
# Echo that filename to the terminal for troubleshooting purposes
|
||||||
diag("The file of the printed out file is located in $filepath");
|
diag("The file of the printed out file is located in $filepath");
|
||||||
|
Loading…
Reference in New Issue
Block a user