Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

'make test' fails in pmem-csi/pkg/exec on Ubuntu 20.04.2 #952

@okartau

Description

@okartau

on a fresh-installed host with Ubuntu 20.04.2, make test will fail with:
go version is 1.16

?       github.com/intel/pmem-csi/pkg/apis      [no test files]
?       github.com/intel/pmem-csi/pkg/apis/pmemcsi      [no test files]
ok      github.com/intel/pmem-csi/pkg/apis/pmemcsi/v1beta1      (cached)
?       github.com/intel/pmem-csi/pkg/coverage  [no test files]
ok      github.com/intel/pmem-csi/pkg/deployments       (cached)
?       github.com/intel/pmem-csi/pkg/errors    [no test files]
--- FAIL: TestRun (0.04s)
    --- FAIL: TestRun/bad-args (0.02s)
        exec_test.go:115: 
                Error Trace:    exec_test.go:115
                Error:          Not equal: 
                                expected: "\"/bin/ls /no/such/file\": command failed: exit status 2\nCombined stderr/stdout output: ls
                                actual  : "\"/usr/bin/ls /no/such/file\": command failed: exit status 2\nCombined stderr/stdout output
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/ls /no/such/file": command failed: exit status 2
                                +"/usr/bin/ls /no/such/file": command failed: exit status 2
                                 Combined stderr/stdout output: ls: cannot access '/no/such/file': No such file or directory
                Test:           TestRun/bad-args
                Messages:       error
    --- FAIL: TestRun/stdout-with-error (0.00s)
        exec_test.go:115: 
                Error Trace:    exec_test.go:115
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo hello world; exit 1\": command failed: exit status 1\nCombined stderr/std
                                actual  : "\"/usr/bin/sh -c echo hello world; exit 1\": command failed: exit status 1\nCombined stderr
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo hello world; exit 1": command failed: exit status 1
                                +"/usr/bin/sh -c echo hello world; exit 1": command failed: exit status 1
                                 Combined stderr/stdout output: hello world
                Test:           TestRun/stdout-with-error
                Messages:       error
    --- FAIL: TestRun/stderr-with-error (0.00s)
        exec_test.go:115: 
                Error Trace:    exec_test.go:115
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo >&2 hello world; exit 1\": command failed: exit status 1\nCombined stderr
                                actual  : "\"/usr/bin/sh -c echo >&2 hello world; exit 1\": command failed: exit status 1\nCombined st
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo >&2 hello world; exit 1": command failed: exit status 1
                                +"/usr/bin/sh -c echo >&2 hello world; exit 1": command failed: exit status 1
                                 Combined stderr/stdout output: hello world
                Test:           TestRun/stderr-with-error
                Messages:       error
--- FAIL: TestResult (0.02s)
    --- FAIL: TestResult/stderr (0.00s)
        exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo >&2 hello world\":\nhello world\n"
                                actual  : "\"/usr/bin/sh -c echo >&2 hello world\":\nhello world\n"
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo >&2 hello world":
                                +"/usr/bin/sh -c echo >&2 hello world":
                                 hello world
                Test:           TestResult/stderr
    --- FAIL: TestResult/both (0.00s)
        exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo >&2 hello; echo world\":\nhello\nworld\n"
                                actual  : "\"/usr/bin/sh -c echo >&2 hello; echo world\":\nhello\nworld\n"
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo >&2 hello; echo world":
                                +"/usr/bin/sh -c echo >&2 hello; echo world":
                                   hello
                Test:           TestResult/both
    --- FAIL: TestResult/stdout-with-error (0.00s)
        exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo hello world; exit 1\": command failed: exit status 1\nOutput:\nhello worl
                                actual  : "\"/usr/bin/sh -c echo hello world; exit 1\": command failed: exit status 1\nOutput:\nhello 
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo hello world; exit 1": command failed: exit status 1
                                +"/usr/bin/sh -c echo hello world; exit 1": command failed: exit status 1
                                 Output:
                Test:           TestResult/stdout-with-error
    --- FAIL: TestResult/stderr-with-error (0.01s)
        exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/sh -c echo >&2 hello world; exit 1\": command failed: exit status 1\nOutput:\nhello 
                                actual  : "\"/usr/bin/sh -c echo >&2 hello world; exit 1\": command failed: exit status 1\nOutput:\nhe
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/sh -c echo >&2 hello world; exit 1": command failed: exit status 1
                                +"/usr/bin/sh -c echo >&2 hello world; exit 1": command failed: exit status 1
                                 Output:
                Test:           TestResult/stderr-with-error
    --- FAIL: TestResult/bad-args (0.00s)
        exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/ls /no/such/file\": command failed: exit status 2\nOutput:\nls: cannot access '/no/s
                                actual  : "\"/usr/bin/ls /no/such/file\": command failed: exit status 2\nOutput:\nls: cannot access '/
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/ls /no/such/file": command failed: exit status 2
                                +"/usr/bin/ls /no/such/file": command failed: exit status 2
                                 Output:
                Test:           TestResult/bad-args
    --- FAIL: TestResult/stdout (0.00s)
       exec_test.go:124: 
                Error Trace:    exec_test.go:124
                Error:          Not equal: 
                                expected: "\"/bin/echo hello world\":\nhello world\n"
                                actual  : "\"/usr/bin/echo hello world\":\nhello world\n"
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,2 +1,2 @@
                                -"/bin/echo hello world":
                                +"/usr/bin/echo hello world":
                                 hello world
                Test:           TestResult/stdout
FAIL
FAIL    github.com/intel/pmem-csi/pkg/exec      0.063s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions