diff options
author | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2014-07-21 18:27:32 +0800 |
---|---|---|
committer | Po-Hsu Lin <po-hsu.lin@canonical.com> | 2014-07-21 18:27:32 +0800 |
commit | 46f70aa4038c6e0f38f13ceb87345b95a9a331e9 (patch) | |
tree | b2e7745e1e1a641aa3b935e5e5f05650df4817e0 /jobs | |
parent | aecec49da80f64457789b917a1418a48fdd73258 (diff) |
graphics.txt.in: fixed the maximum resolution job generation issue
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/graphics.txt.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jobs/graphics.txt.in b/jobs/graphics.txt.in index 355c164..5e43450 100644 --- a/jobs/graphics.txt.in +++ b/jobs/graphics.txt.in @@ -146,10 +146,10 @@ command: device.category == 'VIDEO' package.name == 'zenity' command: - maxi=$(xrandr -q |grep -A 1 "connected\( primary\)* [0-9]" |tail -1 |awk '{print $1}'); - now=$(xdpyinfo | grep dimension | awk '{print $2}') - change_text=$(test $maxi != $now && echo "\nPlease switch to the maximum resolution \nfor the upcoming graphic tests") - zenity --info --text "Maximum resolution: $maxi\nCurrent resolution: $now $change_text" + maxi="$(xrandr -q |grep -A 1 "connected\( primary\)* [0-9]" |tail -1 |awk '{print $1}')" + now="$(xdpyinfo | grep dimension | awk '{print $2}')" + test "\$maxi" != "\$now" && notify="\nPlease switch to the maximum resolution \nfor every graphic tests" + zenity --info --text "Maximum resolution: \$maxi\nCurrent resolution: \$now \$notify" estimated_duration: 10.0 _summary: Test maximum supported resolution for $product _description: |