diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-08-01 14:19:45 -0700 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-08-04 14:23:58 +1000 |
commit | 85c80542a5c52311fdde71459a924d87ec95cc93 (patch) | |
tree | 35cf814d29038cdcbc1b151d649315b02575874c /test/pacman/pmrule.py | |
parent | 32413ad44b874d622034ebd63da57159446a91d3 (diff) |
pactest: only snapshot needed files
Only a few of our tests need file snapshots at all and most of them only
need a few files. Taking snapshots of the entire test environment for
every single test is a massive waste.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/pmrule.py')
-rw-r--r-- | test/pacman/pmrule.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index a91741be..0eec8ea9 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -32,6 +32,12 @@ class pmrule(object): def __str__(self): return self.rule + def snapshots_needed(self): + (testname, args) = self.rule.split("=") + if testname == "FILE_MODIFIED" or testname == "!FILE_MODIFIED": + return [args] + return [] + def check(self, test): """ """ |