uitest/uitest/bisecting.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
New commits: commit 646be83e93fc2e68fc419cf6893bd1d1c1322bf7 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Mar 26 01:50:01 2017 +0100 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 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: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits