~chipaca/snappy/use-etc-writable-for-atomics

« back to all changes in this revision

Viewing changes to helpers/helpers_test.go

  • Committer: Snappy Tarmac
  • Author(s): John R. Lenton
  • Date: 2015-10-19 12:43:25 UTC
  • mfrom: (776.1.2 skip-homedir-no-schroot)
  • Revision ID: snappy_tarmac-20151019124325-pw7hkfk4tiqepkm2
* skip the "homedir is still found when HOME is empty" test when the original HOME env indicates you're in a schroot, as the fallback system call will give the wrong (but correct) result.
* silence the logs when testing a panic in cmd, to avoid scaremongering. by chipaca approved by mvo

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
 
299
299
func (ts *HTestSuite) TestCurrentHomeDirNoHomeEnv(c *C) {
300
300
        oldHome := os.Getenv("HOME")
 
301
        if oldHome == "/sbuild-nonexistent" {
 
302
                c.Skip("running in schroot this test won't work")
 
303
        }
301
304
        defer os.Setenv("HOME", oldHome)
302
305
 
303
306
        os.Setenv("HOME", "")