summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
authorSergio Cazzolato <sergio.cazzolato@canonical.com>2020-12-02 18:04:34 -0300
committerSergio Cazzolato <sergio.cazzolato@canonical.com>2020-12-02 18:04:34 -0300
commit7db34d5fa5ec63c3539c9a93b30f6117c0d83e41 (patch)
tree486e0e5d200a46824238b474301db9a316426c7d /tests/unit
parent5387521536765f7d1c992fc47eb6ccf114728ab0 (diff)
Use os.query tool instead of comparing the system var
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/go/task.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/go/task.yaml b/tests/unit/go/task.yaml
index bd12ad7fc1..ffd43cabe9 100644
--- a/tests/unit/go/task.yaml
+++ b/tests/unit/go/task.yaml
@@ -17,7 +17,7 @@ execute: |
# The format of code produced by "gofmt" drifts over time. Perform checks
# only on a fixed version to avoid hair-pulling annoyance every six months.
- if [[ "$SPREAD_SYSTEM" != ubuntu-16.04-* ]]; then
+ if not os.query is-xenial; then
skip='SKIP_GOFMT=1'
fi