Commit Graph
21 Commits
Author SHA1 Message Date
90c7896d23 sync: fall back to full sync when --file-system has no operands (#11393)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-03 11:07:58 +02:00
7b0e7e4cbf sync: return after checking all inputs (#10742)
* sync: return after checking all inputs

* fix missing error context

* use set_exit_code and update translation templates to show errors

* remove thiserror dependency

* fix typo

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Chris Dryden <christopher.paul.dryden@gmail.com>
2026-02-09 18:45:20 -08:00
fafa77588b sync: open file with nonblock (#10765)
* open file with nonblock and add test

* fix spellcheck

* remove libc dependency; improve errors

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-02-07 06:52:58 -08:00
Cả thế giới là RustandGitHub 309e3beff2 Merge pull request #9437 from naoNao89/sync-remove-unwrap
sync: Reset O_NONBLOCK flag after file validation to match GNU behavior
2026-01-18 18:36:17 +01:00
Dorian Peron 6e23d4e979 tests: patch tests to simplify imports 2025-07-01 03:36:46 +02:00
Sylvestre Ledru a0179ea239 uutests: adjust the tests to use them 2025-03-28 21:40:31 +01:00
Sylvestre Ledru 18cb7dcf9e Use the new function fails_with_code
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Sylvestre Ledru bfca6bf70f Add license headers on all files 2023-08-21 10:49:27 +02:00
John Shin 47d0ac4a42 sync: fix error msg 2023-06-17 19:50:47 -07:00
Daniel Hofstetter 7a888da409 tests: remove all "extern crate" statements 2023-04-10 08:31:31 +02:00
Daniel Hofstetter 6988eb7ec6 tests: expand wildcard imports 2023-03-20 15:32:35 +01:00
Orhun Parmaksız be49eb68f3 fix: address test failures 2022-11-04 13:35:54 +03:00
Sylvestre Ledru 6edf8ebf41 sync: Verify that the files can be opened 2022-10-05 13:30:19 +02:00
Sylvestre Ledru fc1c7755b9 sync: make fail like GNU - tests/misc/sync.sh 2022-10-05 13:30:19 +02:00
Terts Diepraam 9177cb7b24 all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
Yağız can Değirmenci 8fe34c72d2 test: fix tests 2021-05-26 03:07:49 +03:00
Gilad Naaman b91fadd8f4 Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
Sylvestre LedruandGitHub e331186fee unbreak build with rustc 1.32: force tempfile 3.1.0 (#1695) 2021-01-19 08:15:53 +01:00
Sylvestre LedruandGitHub 11ecf80a25 feature(sync): add --data & --file-system (#1639) 2020-11-29 16:32:21 +01:00
Sylvestre Ledru 2febd13733 refactor(sync): Move to clap + add tests 2020-11-11 22:57:55 +01:00
Roy Ivy III 1b3bb56e66 tests ~ add missing test_UTIL module files (with 'ToDO' comments)
- common_core utils
- additional 'windows' utils
- additional 'unix' utils
2020-06-02 11:25:09 -05:00