mirror of
https://github.com/restic/restic.git
synced 2026-05-31 22:29:43 +00:00
Use flag instead of build tag to run integration tests
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// +build integration
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build integration
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -119,8 +117,12 @@ func cmdFsck(t testing.TB) {
|
||||
}
|
||||
|
||||
func TestBackup(t *testing.T) {
|
||||
if !*RunIntegrationTest {
|
||||
t.Skip("integration tests disabled, use `-test.integration` to enable")
|
||||
}
|
||||
|
||||
if *TestDataFile == "" {
|
||||
t.Fatal("no data tar file specified, use flag '-test.datafile'")
|
||||
t.Fatal("no data tar file specified, use flag `-test.datafile`")
|
||||
}
|
||||
|
||||
tempdir := setupTempdir(t)
|
||||
|
||||
Reference in New Issue
Block a user