@@ -245,16 +245,14 @@ mod test {
245245 fn test_create_dir_all ( ) -> anyhow:: Result < ( ) > {
246246 // Run this test manually, steps:
247247
248- // For Unix
249- // 1. Run the below shell script in an empty dir with standard privileges.
250- // 2. Set env var 'XET_TEST_PATH' to this path.
251- // 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
252- // 4. Locate the path to the executable as TEST_EXE
253- // 5. Run test with a non-root user: 'TEST_EXE config::permission::test::test_create_dir_all --exact --nocapture --include-ignored'
254-
255- r#"
256- sudo mkdir rootdir
257- "# ;
248+ /* For Unix
249+ 1. Run the below shell script in an empty dir with standard privileges.
250+ 2. Set env var 'XET_TEST_PATH' to this path.
251+ 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
252+ 4. Locate the path to the executable as TEST_EXE
253+ 5. Run test with a non-root user: 'TEST_EXE config::permission::test::test_create_dir_all --exact --nocapture --include-ignored'
254+ sudo mkdir rootdir
255+ */
258256
259257 let test_path = std:: env:: var ( "XET_TEST_PATH" ) ?;
260258 std:: env:: set_current_dir ( test_path) ?;
@@ -273,16 +271,15 @@ sudo mkdir rootdir
273271 fn test_create_dir_all_sudo ( ) -> anyhow:: Result < ( ) > {
274272 // Run this test manually, steps:
275273
276- // For Unix
277- // 1. Run the below shell script in an empty dir with standard privileges.
278- // 2. Set env var 'XET_TEST_PATH' to this path.
279- // 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
280- // 4. Locate the path to the executable as TEST_EXE
281- // 5. Run test with root user: 'sudo -E TEST_EXE config::permission::test::test_create_dir_all_sudo --exact --nocapture --include-ignored'
274+ /* For Unix
275+ 1. Run the below shell script in an empty dir with standard privileges.
276+ 2. Set env var 'XET_TEST_PATH' to this path.
277+ 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
278+ 4. Locate the path to the executable as TEST_EXE
279+ 5. Run test with a non- root user: 'sudo -E TEST_EXE config::permission::test::test_create_dir_all_sudo --exact --nocapture --include-ignored'
282280
283- r#"
284- mkdir regdir
285- "# ;
281+ mkdir regdir
282+ */
286283
287284 let test_path = std:: env:: var ( "XET_TEST_PATH" ) ?;
288285 std:: env:: set_current_dir ( test_path) ?;
@@ -310,17 +307,16 @@ mkdir regdir
310307 fn test_create_file ( ) -> anyhow:: Result < ( ) > {
311308 // Run this test manually, steps:
312309
313- // For Unix
314- // 1. Run the below shell script in an empty dir with standard privileges.
315- // 2. Set env var 'XET_TEST_PATH' to this path.
316- // 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
317- // 4. Locate the path to the executable as TEST_EXE
318- // 5. Run test with a non-root user: 'TEST_EXE config::permission::test::test_create_file --exact --nocapture --include-ignored'
310+ /* For Unix
311+ 1. Run the below shell script in an empty dir with standard privileges.
312+ 2. Set env var 'XET_TEST_PATH' to this path.
313+ 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
314+ 4. Locate the path to the executable as TEST_EXE
315+ 5. Run test with a non-root user: 'TEST_EXE config::permission::test::test_create_file --exact --nocapture --include-ignored'
319316
320- r#"
321- sudo mkdir rootdir
322- sudo touch rootdir/file
323- "# ;
317+ sudo mkdir rootdir
318+ sudo touch rootdir/file
319+ */
324320
325321 let test_path = std:: env:: var ( "XET_TEST_PATH" ) ?;
326322 std:: env:: set_current_dir ( test_path) ?;
@@ -345,16 +341,14 @@ sudo touch rootdir/file
345341 fn test_create_file_sudo ( ) -> anyhow:: Result < ( ) > {
346342 // Run this test manually, steps:
347343
348- // For Unix
349- // 1. Run the below shell script in an empty dir with standard privileges.
350- // 2. Set env var 'XET_TEST_PATH' to this path.
351- // 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
352- // 4. Locate the path to the executable as TEST_EXE
353- // 5. Run test with root user: 'sudo -E TEST_EXE config::permission::test::test_create_file_sudo --exact --nocapture --include-ignored'
354-
355- r#"
356- mkdir regdir
357- "# ;
344+ /* For Unix
345+ 1. Run the below shell script in an empty dir with standard privileges.
346+ 2. Set env var 'XET_TEST_PATH' to this path.
347+ 3. Build the test executable by running 'cargo test -p gitxetcore --lib --no-run'.
348+ 4. Locate the path to the executable as TEST_EXE
349+ 5. Run test with a non-root user: 'sudo -E TEST_EXE config::permission::test::test_create_file_sudo --exact --nocapture --include-ignored'
350+ mkdir regdir
351+ */
358352
359353 let test_path = std:: env:: var ( "XET_TEST_PATH" ) ?;
360354 std:: env:: set_current_dir ( test_path) ?;
0 commit comments