Bug 24012 - тесты проходят не на всех ФС
Summary: тесты проходят не на всех ФС
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gear (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 16:12 MSD by Michail Yakushin
Modified: 2010-09-06 18:43 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Yakushin 2010-09-03 16:12:07 MSD
Юнит тесты которые запускаются после сборки gear не проходят, например на ext4. Потому, что последовательность файлов после запаковки и распаковки не совпадает, а на tmpfs совпадает. 
например функция gear_rules_archive_dot_const ожидает список файлов  после распаковки:
./$spec
./$name.$gear_directive
а на ext4 они оказываются в обратной последовательности:
./$name.$gear_directive 
./$spec

из за этого тест ложно сваливается, хотя все файлы на месте.
Видимо, необходимо добавить сортировку перед сравнением списка файлов.
Comment 2 Repository Robot 2010-09-06 18:34:48 MSD
gear-1.7.2.2-alt1 -> sisyphus:

* Mon Sep 06 2010 Dmitry V. Levin <ldv@altlinux> 1.7.2.2-alt1
- gear-import: pass --no-verify option to git-commit.
- Renamed gear-update-tag to gear-store-tags (closes: #18739).
- gear-command-{hasher,rpmbuild}: unset GIT_* environment
  variables used by gear itself (closes: #20884).
- tests: fixed false positive on non-tmpfs filesystems
  (closes: #24012).