Skip to content

Conversation

@kolyshkin
Copy link
Collaborator

mount: fix test for added relatime

The mount option relatime can be added by the kernel, and
this is what happens on my machine:

--- FAIL: TestMount (0.00s)
mounter_linux_test.go:176: unexpected mount option "relatime", expected ""
FAIL

Same as in commit afc7b0d, this option should be ignored.

mount: test nitpicks

  1. Do not ignore errors from Mkdir.
  2. Use ioutil.WriteFile for simplicity, to not leak fds and to not
    ignore errors from Write or Close.

1. Do not ignore errors from Mkdir.

2. Use ioutil.WriteFile for simplicity, to not leak fds and to not
   ignore errors from Write or Close.

Signed-off-by: Kir Kolyshkin <[email protected]>
The mount option `relatime` can be added by the kernel, and
this is what happens on my machine:

> --- FAIL: TestMount (0.00s)
>     mounter_linux_test.go:176: unexpected mount option "relatime", expected ""
> FAIL

Same as in commit afc7b0d, this option should be ignored.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Collaborator Author

@cpuguy83 @thaJeztah PTAL

@thaJeztah
Copy link
Member

could you add CI so that tests actually run on this repo? probably could just copy what's in https://github.com/moby/term/blob/master/.github/workflows/test.yml

@kolyshkin
Copy link
Collaborator Author

I plan to add CI once #3 is merged (don't remember ATM why it's needed but it's needed)

@kolyshkin
Copy link
Collaborator Author

merging to unblock adding CI

@kolyshkin kolyshkin merged commit 7236de4 into moby:master Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants