Comments (5)
That sounds like a good idea.
I was not aware that this would be a problem but it makes sense. I'll look at copying everything to /tmp for the tests.
from dust.
An alternative would be to determine what file system we are looking at and then adjust the tests accordingly.
We could also run the tests as 'result == X or result == Y or result == Z' and let any of them pass.
This needs some thought and it should be resolved.
Windows users were also reporting inconsistent numbers on their machines.
from dust.
I think adding specific per-filesystem test results is doomed to failure from the outset — there are simply too many choices, where do you draw the line as to adding a new filesystem? Whose job is it to then update all those filesystem-specific results? What if one filesystem's success matches also another filesystem's failure?
We already have #[cfg(target_os)]
for Mac and Linux, I think adding one more for Windows and then requiring that the tests be run on APFS, tmpfs, or NTFS respectively isn't an unreasonable technical burden on either side.
from dust.
I think adding specific per-filesystem test results is doomed to failure from the outset — there are simply too many choices,
Agreed.
I am also considering changing the tests so they only look at the file names and ignore the files sizes. However I don't like this idea as we would then loose the ability to test a 'complete' output.
I'm doing a refactor at the minute and I'm keeping testing in mind.
I think your idea of using the /tmp
directory may be the best option if the CI runners allow it.
from dust.
This commit copies the tests files to the /tmp/ directory this should fix it.
from dust.
Related Issues (20)
- Visiting directory with hard linked files produces unstable result HOT 2
- "Did not have permissions" message is shown even when all the arguments are files HOT 1
- panicked at 'called `Result::unwrap()` HOT 11
- ThreadPoolBuildError: Resource temporarily unavailable HOT 1
- Add flag to only display directories HOT 1
- Symlink support HOT 2
- Add flag to ignore hard links HOT 5
- Feature request: Ignore files by filter file HOT 1
- Add option to not limit number of lines in the report HOT 1
- Feature request: only list files and sort them by size HOT 2
- Play nicer with Screen Readers HOT 6
- dust got significantly slower with version 0.8.1 HOT 2
- Can dust close multi-threads run? HOT 2
- Support for following symlinks HOT 2
- Getting OOM killed with large number of inodes HOT 3
- Bare view and intermediate results? HOT 1
- flatpak HOT 2
- [Feature Request] support show gzip size HOT 4
- Count hard links only once between multiple directories on the command-line? HOT 2
- dust is not a supported application HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dust.