]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix link error
authorKarel Kočí <cynerd@email.cz>
Thu, 6 Aug 2015 11:03:28 +0000 (13:03 +0200)
committerKarel Kočí <cynerd@email.cz>
Wed, 12 Aug 2015 08:21:09 +0000 (10:21 +0200)
Creation of link to linux image wasn't done right.
Outcome was, wrong path in link.

scripts/loop.py
scripts/test.py

index 2f008dcb86791f49bb903af08e17d2ecf92401ee..fc0ea441c7927d1b1fe4645d28207a5f679f32f3 100755 (executable)
@@ -41,8 +41,7 @@ def measure(kernelimg, con):
                os.remove(sf(conf.jobfolder_linux_image))
        except FileNotFoundError:
                pass
-       os.symlink(os.path.join(sf(conf.build_folder), kernelimg),
-                       sf(conf.jobfolder_linux_image))
+       os.symlink(kernelimg, sf(conf.jobfolder_linux_image))
        boot.boot(con)
        print("Configuration '" + con.hash + "' measured.")
 
index b01a8b679bf3f60abe731194db9540dd21b28070..d24e31b3f7bfc3c082fcd050de1883057cf0c17a 100755 (executable)
@@ -19,8 +19,7 @@ def test():
                os.remove(sf(conf.jobfolder_linux_image))
        except FileNotFoundError:
                pass
-       os.symlink(os.path.join(sf(conf.build_folder), img),
-                       sf(conf.jobfolder_linux_image))
+       os.symlink(img, sf(conf.jobfolder_linux_image))
        conf.boot_output = True
        conf.parse_output = True
        print("-- Boot --")