summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/regress/opk.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/regress/opk.py b/tests/regress/opk.py
index 616658a..9763bd3 100644
--- a/tests/regress/opk.py
+++ b/tests/regress/opk.py
@@ -90,6 +90,12 @@ def regress_init():
os.chdir(cfg.opkdir)
- odir = "{}/usr/lib/opkg".format(cfg.offline_root)
- os.system("rm -fr {}".format(odir))
- os.mkdir(odir)
+ os.system("rm -fr {}".format(cfg.offline_root))
+
+ os.makedirs("{}/usr/lib/opkg".format(cfg.offline_root))
+ os.makedirs("{}/etc/opkg".format(cfg.offline_root))
+
+ f = open("{}/etc/opkg/opkg.conf".format(cfg.offline_root), "w")
+ f.write("arch all 1\n")
+ f.write("src test file:{}\n".format(cfg.opkdir))
+ f.close()