Commit Graph
18 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 5498f16f7a Merge pull request #4414 from warwickmm/test/run_script_after
Add test for run-script-after option
2021-03-06 15:00:38 +01:00
Kenneth SkovhedeandGitHub 713b0b0746 Merge pull request #4417 from warwickmm/handle_unsupported_run_script_exit_codes
Abort with error if run-script-before script returns unsupported code
2021-03-06 14:12:33 +01:00
Kenneth Hsu 11bd54d160 Fix test for DUPLICATI__PARSED_RESULT on Windows. 2021-01-14 20:21:47 -08:00
Kenneth Hsu 148788a879 Add test for DUPLICATI__PARSED_RESULT environment variable.
This concerns issue #4222.
2021-01-14 19:39:03 -08:00
Kenneth Hsu c11f7c2e47 Avoid testing scripts with exit code -1.
The behavior is not consistent or well-defined across shells.

https://unix.stackexchange.com/questions/418784/what-is-the-min-and-max-values-of-exit-codes-in-linux
2021-01-10 15:53:51 -08:00
Kenneth Hsu 359ae2c85b Add test for unsupported script exit codes. 2021-01-10 10:44:58 -08:00
Kenneth Hsu c377e33e3d Remove spaces around redirection operator.
This was failing in AppVeyor with the message:

Expected string length 5 but was 6. Strings differ at index 5.
Expected: "Hello"
But was:  "Hello "
2021-01-09 12:26:20 -08:00
Kenneth Hsu 232544e5a3 Remove quotes from echo statement in run-script-after test.
The behavior appears to be different between Windows and Linux.
2021-01-09 12:00:01 -08:00
Kenneth Hsu 80028005c1 Add test for run-script-after. 2021-01-09 11:14:31 -08:00
Kenneth Hsu 6570cd954c Add test for specifying remote URL using run-script-before.
This concerns issue #3651.
2020-11-01 14:19:09 -08:00
Kenneth Hsu ca5aad9ccb Allow custom commands to be provided to CreateScript test helper. 2020-11-01 13:14:00 -08:00
Kenneth Hsu e1a6ae4483 Check operation results for errors and warnings in tests. 2020-07-05 18:50:10 -07:00
Kenneth Hsu d364be4037 Clean test data after each test. 2019-08-18 14:27:01 -07:00
Kenneth Hsu a6f751f605 Move creation of test data folders to base class. 2019-08-18 14:01:27 -07:00
verhoek 8bb406cd15 Migrated to use the platform class. 2018-11-02 22:17:16 +01:00
Kenneth Skovhede baee3e312e Added delay to the exit code tests to avoid overlapping timestamps 2018-08-15 08:15:15 +02:00
Kenneth Skovhede 1626037fd7 Changed path where scripts are created to avoid littering the base folder with junk 2018-08-14 11:30:17 +02:00
Kenneth Skovhede 494fccd931 Added support for multiple exit codes, and added a unittest to verify that the exit codes are handled correctly 2018-08-14 11:09:16 +02:00