Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[cp] Add test for cycle symlink#1045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
wafuwafu13 wants to merge3 commits intoshelljs:main
base:main
Choose a base branch
Loading
fromwafuwafu13:cpcheckcycle-test

Conversation

@wafuwafu13
Copy link

Related:#739

// Check last directory to exist is below maxdepth.
t.truthy(shell.test('-d',`${t.context.tmp}/copytestdepth${directory32deep}`));
t.falsy(shell.test('-d',`${t.context.tmp}/copytestdepth${directory32deep}/32`));
utils.skipOnWinForEPERM(shell.ln.bind(shell,'-s',`${t.context.tmp}/0`,`${t.context.tmp}/symlinktest`),()=>{
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Delete it because it doesn't create symlinks to check for cycle.

@wafuwafu13
Copy link
Author

wafuwafu13 commentedSep 23, 2021
edited
Loading

test passes in my local environment... 😓

@nfischer
Copy link
Member

Could you rebase? I recently updated CI to use GitHub actions instead. This may be more reliable than the old environment.

wafuwafu13 reacted with eyes emoji

@codecov-commenter
Copy link

codecov-commenter commentedFeb 1, 2022
edited
Loading

Codecov Report

Merging#1045 (b535d24) intomaster (9a0e5f6) willdecrease coverage by0.14%.
The diff coverage isn/a.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1045      +/-   ##==========================================- Coverage   97.19%   97.04%   -0.15%==========================================  Files          36       36                Lines        1354     1354              ==========================================- Hits         1316     1314       -2- Misses         38       40       +2
Impacted FilesCoverage Δ
src/cp.js98.46% <ø> (+6.92%)⬆️
src/which.js80.00% <0.00%> (-15.00%)⬇️
src/cmd.js94.11% <0.00%> (-5.89%)⬇️
src/find.js95.45% <0.00%> (-4.55%)⬇️
src/ln.js96.87% <0.00%> (-3.13%)⬇️
src/ls.js97.67% <0.00%> (-2.33%)⬇️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update9a0e5f6...b535d24. Read thecomment docs.

@wafuwafu13
Copy link
Author

I don't know how to solve this problem in windows, so close

@nfischer
Copy link
Member

Thanks for trying the rebase. Looks like the error message fromhttps://github.com/shelljs/shelljs/runs/5018531671?check_suite_focus=true is:

cp » Test with cycle symlink  D:\a\shelljs\shelljs\tmp04812076144037267068[653](https://github.com/shelljs/shelljs/runs/5018531671?check_suite_focus=true#step:5:653)06818777819\test\cp.js:635  Value is not falsy:  'cp: cannot create directory \'new\': No such file or directory'  _utils.default.skipOnWinForEPERM (test/cp.js:635:9)  Object.skipOnWinForEPERM (test/utils/utils.js:31:5)  t (test/cp.js:629:11)

I wonder ifnew is a reserved word on Windows, or maybe we just can't create the dir for some reason?

wafuwafu13 reacted with eyes emoji

@wafuwafu13wafuwafu13 reopened thisFeb 6, 2022
@wafuwafu13
Copy link
Author

'cp: cannot create directory \'newsub\': No such file or directory' 🤔

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@wafuwafu13@nfischer@codecov-commenter

[8]ページ先頭

©2009-2025 Movatter.jp