30_fs_longpath.py 336 B

12345678910111213
  1. import os, sys, mmap
  2. from regression import Regression
  3. loader = sys.argv[1]
  4. # Running Long Filepath Example
  5. regression = Regression(loader, "fs_long_path")
  6. regression.add_check(name="FS Long Paths",
  7. check=lambda res: "Successfully read from file: Hello World" in res[0].out)
  8. rv = regression.run_checks()
  9. if rv: sys.exit(rv)