diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 01:50:01 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 04:15:42 +0200 |
commit | 646be83e93fc2e68fc419cf6893bd1d1c1322bf7 (patch) | |
tree | d2d5f3dbc0dbb152eef229a5f7fad28a9ecefcd5 /uitest | |
parent | 8724bcff1e4c9e666125927659db747b483401c3 (diff) |
uitest: add a decorator to document required revision
This is the first step in allowing easy bisecting with the UI testing
framework. We now also need a script that can execute tests and a way to
get the revision information back into the bisecting script.
Change-Id: If59db62ba25162ae69360d5b8ae769a6d179c16c
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest/bisecting.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/uitest/uitest/bisecting.py b/uitest/uitest/bisecting.py new file mode 100644 index 000000000000..7d2f074411df --- /dev/null +++ b/uitest/uitest/bisecting.py @@ -0,0 +1,16 @@ +# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +from functools import wraps + +def requires(revision): + def decorator(f): + f.requires = revision + return f + return decorator + +# vim: set shiftwidth=4 softtabstop=4 expandtab: |